xuzhiheng 1 жил өмнө
parent
commit
3c538d2e2c
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      service/company.go

+ 1 - 1
service/company.go

@@ -39,7 +39,7 @@ func CompanyType(companyName string) (bool, bool) {
 		isGroup = true
 	}
 	//是否在工商库
-	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 = true
 	}
 	return isGroup, isCommerce