WH01243 9 сар өмнө
parent
commit
32d39552ca

+ 9 - 8
api/internal/service/owner.go

@@ -161,14 +161,15 @@ func (t *OwnerService) OwnerlList() map[string]interface{} {
 		}
 
 	}
-
-	buyerIdArr := getBuyerIdArr(returnData)
-	// 可介绍业主人脉处理
-	a3 := time.Now().Unix()
-	routeList := ConnectionsHandle(buyerIdArr, t.PositionId, false)
-	a4 := time.Now().Unix()
-	fmt.Println("组合数1111据", a4-a3)
-	updateReturnDataWithRoutes(returnData, routeList)
+	if ok, err := redis.Exists("newother", listKey); !ok || err != nil || t.SourceType == "2" {
+		buyerIdArr := getBuyerIdArr(returnData)
+		// 可介绍业主人脉处理
+		a3 := time.Now().Unix()
+		routeList := ConnectionsHandle(buyerIdArr, t.PositionId, false)
+		a4 := time.Now().Unix()
+		fmt.Println("组合数1111据", a4-a3)
+		updateReturnDataWithRoutes(returnData, routeList)
+	}
 	if len(returnData) > 0 {
 		//监控状态处理
 		monitorMap := NetworkCom.EntMonitor(gconv.String(t.PositionId))