shenjingwei 2 месяцев назад
Родитель
Сommit
a3300bea8b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/custom/restcontroller/crm/agent/customer/Customer.java

+ 1 - 1
src/custom/restcontroller/crm/agent/customer/Customer.java

@@ -68,7 +68,7 @@ public class Customer extends Controller {
         SQLDump sqldump = new SQLDump();
         boolean iscreatefollowup = false;
         Rows sa_customersRows = SQLFactory.createQuerySQL(this, "sa_customers", "sa_customersid").setSiteid(siteid).setUniqueid(sa_customersid).query();
-        if (sa_customersid <= 0 || sa_customersRows.isEmpty()) {
+        if (sa_customersid == 0 || sa_customersRows.isEmpty()) {
             long sa_agentsid = userInfo.getAgentID();
 
             InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "sa_customers");