소스 검색

铁塔数据导入

xuzhiheng 1 년 전
부모
커밋
e0a17871e0
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      service/clue.go

+ 5 - 0
service/clue.go

@@ -60,6 +60,11 @@ func ClueImportTtSync(this *biservice.ClueImportReq) (string, int) {
 						v["isCompetitors"] = "是"
 					}
 				}
+				customer_data := BiService.FindOne("customer_data_ttzl", map[string]interface{}{"id": id}, "", "")
+				if customer_data != nil {
+					log.Println("数据重复", id)
+					continue
+				}
 				delete(v, "import_pc")
 				dataId := BiService.Insert("customer_data_ttzl", v)
 				if dataId > 0 {