wangchuanjin 9 ماه پیش
والد
کامیت
57923da474
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 3 5
      api/internal/service/owner.go

+ 3 - 5
api/internal/service/owner.go

@@ -785,12 +785,10 @@ func PersonFindConnectionsHandle(positionId int64, bps []BuyerProject, contactCo
 	entIdMap := map[string]bool{}
 	for _, v := range bps {
 		for kk, vv := range v.Project.Connections {
-			b_id, _ := vv["b_id"].(string)
-			if b_id == "" || entIdMap[b_id] {
-				continue
+			if b_id, _ := vv["b_id"].(string); b_id != "" && !entIdMap[b_id] {
+				entIdMap[b_id] = true
+				entIdArr = append(entIdArr, b_id)
 			}
-			entIdMap[b_id] = true
-			entIdArr = append(entIdArr, b_id)
 			if kk == contactCount-1 {
 				break
 			}