shenjingwei 1 mese fa
parent
commit
da29993221

+ 1 - 1
src/custom/restcontroller/webmanage/sale/enterprise/enterprise.java

@@ -476,7 +476,7 @@ public class enterprise extends Controller {
 
 
         //企业信息同步到【我的客户】,并将该客户打上经销商标签,
-        Rows customersRows = dbConnect.runSqlQuery("SELECT sa_customersid from sa_customers WHERE sys_enterpriseid =" + sys_enterpriseid + " and siteid = '" + siteid + "'");
+        Rows customersRows = dbConnect.runSqlQuery("SELECT sa_customersid from sa_customers WHERE sys_enterpriseid =" + sys_enterpriseid + " and siteid = '" + siteid + "' and sa_agentsid is null");
         Long sa_customersid = 0L;
         if (customersRows.isNotEmpty()) {
             sa_customersid = customersRows.get(0).getLong("sa_customersid");