|
|
@@ -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");
|