Browse Source

feat:xiugai

wangchuanjin 1 year ago
parent
commit
fa4ed1d729
1 changed files with 4 additions and 4 deletions
  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,
 						RecentTime:  zbtime,
 						NearlyYears: near,
 						NearlyYears: near,
 					}
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 						continue
 					}
 					}
 					a1++
 					a1++
@@ -1130,7 +1130,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						EntId:       common.ObjToString(m["nameId"]),
 						EntId:       common.ObjToString(m["nameId"]),
 						BuyerId:     buyerId,
 						BuyerId:     buyerId,
 					}
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 						continue
 					}
 					}
 					a2++
 					a2++
@@ -1151,7 +1151,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						EntId:        common.ObjToString(m["b_id"]),
 						EntId:        common.ObjToString(m["b_id"]),
 						BuyerId:      buyerId,
 						BuyerId:      buyerId,
 					}
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 						continue
 					}
 					}
 					a3++
 					a3++
@@ -1171,7 +1171,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 						EntId:        common.ObjToString(m["b_id"]),
 						EntId:        common.ObjToString(m["b_id"]),
 						BuyerId:      buyerId,
 						BuyerId:      buyerId,
 					}
 					}
-					if tmp.BuyerId == "" {
+					if tmp.EntId == "" || tmp.BuyerId == "" {
 						continue
 						continue
 					}
 					}
 					a4++
 					a4++