WH01243 10 сар өмнө
parent
commit
8010741a14
1 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 7 0
      clueSync/job.go

+ 7 - 0
clueSync/job.go

@@ -87,6 +87,13 @@ func FormatData(data map[string]interface{}, item string) (bool, bool) {
 					log.Println("留资没有source", phone)
 					return true, true
 				}
+				//线索名称查询处理
+				clueData, _ := TiDb.FindOne("dwd_f_crm_clue_info", map[string]interface{}{"uid": uId}, "", ""), true //查当前线索是否已存在
+				if clueData != nil && len(*clueData) > 0 {
+					cluename = gconv.String((*clueData)["cluename"])
+				} else {
+					cluename = phone
+				}
 			}
 
 		}