xuzhiheng 1 жил өмнө
parent
commit
6cdb320c2d

+ 4 - 0
clueSync/job.go

@@ -187,6 +187,10 @@ func FormatData(data map[string]interface{}, item string) (bool, bool) {
 		position = common.ObjToString(data["position"])
 		name = common.ObjToString(data["name"])
 		sourceCode = common.ObjToString(data["source"])
+		if sourceCode == "" {
+			log.Println("留资没有source", phone)
+			return true, true
+		}
 		remark = common.ObjToString(data["jyRemark"])
 		keywordArr := data["keyword"]
 		if keywordArr != nil {

+ 1 - 1
clueSync/jobutil.go

@@ -371,7 +371,7 @@ func GetCompanyType(companyName string) (int, int) {
 		isGroup = 1
 	}
 	//是否在工商库
-	if c := MgoQyxy.Count("qyxy_std", map[string]interface{}{"company_name": companyName}); c > 0 {
+	if c := MgoQyxy.Count("qyxy_std", map[string]interface{}{"company_name": companyName, "company_type": map[string]interface{}{"$ne": "个体工商户"}}); c > 0 {
 		isCommerce = 1
 	}
 	return isGroup, isCommerce