shenjingwei пре 2 месеци
родитељ
комит
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");