shenjingwei 2 miesięcy temu
rodzic
commit
a3300bea8b

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