Browse Source

查询终端客户档案添加查询phonenumber精确查询

hu 4 months ago
parent
commit
030ba9c208
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/custom/restcontroller/webmanage/sale/customer/Customer.java

+ 5 - 0
src/custom/restcontroller/webmanage/sale/customer/Customer.java

@@ -985,6 +985,11 @@ public class Customer extends Controller {
                 where.append(" or t4.sys_enterpriseid ='").append(whereObject.getString("sys_enterpriseid")).append("' ");
                 where.append(" or t4.sys_enterpriseid ='").append(whereObject.getString("sys_enterpriseid")).append("' ");
                 where.append(")");
                 where.append(")");
             }
             }
+            if (whereObject.containsKey("phonenumber") && !"".equals(whereObject.getString("phonenumber"))) {
+                where.append(" and(");
+                where.append("t1.phonenumber ='").append(whereObject.getString("phonenumber")).append("' ");
+                where.append(")");
+            }
         }
         }
         QuerySQL querySQL;
         QuerySQL querySQL;
         querySQL = SQLFactory.createQuerySQL(this, "sa_customers", "sa_customersid","name","phonenumber","province","city","county","address","createdate","sa_agentsid","sa_agentsid_to");
         querySQL = SQLFactory.createQuerySQL(this, "sa_customers", "sa_customersid","name","phonenumber","province","city","county","address","createdate","sa_agentsid","sa_agentsid_to");