瀏覽代碼

fenzhihebing

lianbingjie 1 年之前
父節點
當前提交
3c9d161991
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      service/clue.go

+ 14 - 0
service/clue.go

@@ -750,12 +750,18 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
 						userData := JyBiTidb.FindOne("dwd_f_userbase_contacts", map[string]interface{}{"phone": phone}, "", "")
 						if userData != nil && len(*userData) > 0 {
 							source := common.IntAll((*userData)["source"])
+<<<<<<< HEAD
 							userId := ""
 							uId := common.ObjToString((*userData)["baseinfo_id"])
 							baseData := JyBiTidb.FindOne("dwd_f_userbase_baseinfo", map[string]interface{}{"uid": uId}, "", "")
 							if baseData != nil {
 								userId = common.ObjToString((*baseData)["userid"])
 							}
+=======
+							userId := common.ObjToString((*userData)["userid"])
+							uId := common.ObjToString((*userData)["uid"])
+							belong_to := common.ObjToString((*userData)["belong_to"])
+>>>>>>> master
 							if source == 5 {
 								if !isOks {
 									result += ",“该线索已归属域外”"
@@ -764,6 +770,14 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
 									result += fmt.Sprint(counts) + ".第" + fmt.Sprint(k+2) + "行,“该线索已归属域外”"
 								}
 								isOks = false
+							} else if strings.HasPrefix(belong_to, "03") {
+								if !isOks {
+									result += ",“该线索已归属合作渠道一切都好”"
+								} else {
+									counts++
+									result += fmt.Sprint(counts) + ".第" + fmt.Sprint(k+2) + "行,“该线索已归属合作渠道一切都好”"
+								}
+								isOks = false
 							} else {
 								isOK = true
 								dataMap["userId"] = userId