소스 검색

feat:xiugai

wangchuanjin 1 년 전
부모
커밋
fa4ed1d729
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      api/internal/service/owner.go

+ 4 - 4
api/internal/service/owner.go

@@ -1110,7 +1110,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						RecentTime:  zbtime,
 						NearlyYears: near,
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 					}
 					a1++
@@ -1130,7 +1130,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						EntId:       common.ObjToString(m["nameId"]),
 						BuyerId:     buyerId,
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 					}
 					a2++
@@ -1151,7 +1151,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						EntId:        common.ObjToString(m["b_id"]),
 						BuyerId:      buyerId,
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 					}
 					a3++
@@ -1171,7 +1171,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						EntId:        common.ObjToString(m["b_id"]),
 						BuyerId:      buyerId,
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 					}
 					a4++