Browse Source

企业信息界面内容修改

wu 3 weeks ago
parent
commit
a6be0c4dec

+ 3 - 12
src/custom/restcontroller/sale/enterprise/SQL/银行卡信息列表查询.sql

@@ -1,13 +1,4 @@
-select t1.sys_enterprise_bankid,
-       t1.sys_enterpriseid,
-       t1.name,
-       t1.bank,
-       t1.bankcardno,
-       t1.phonenumber,
-       t1.createby,
-       t1.createdate,
-       t1.changeby,
-       t1.changedate
-from sys_enterprise_bank t1   
-where t1.siteid = $siteid$ and t1.sys_enterpriseid=$sys_enterpriseid$
+select t1.*,t2.sys_enterpriseid from sa_bankabcxccard t1
+                                         INNER JOIN sa_agents t2 ON t2.sa_agentsid=t1.sa_agentsid
+WHERE  t1.siteid = $siteid$ and t2.sys_enterpriseid=$sys_enterpriseid$
   and $where$

+ 2 - 2
src/custom/restcontroller/sale/enterprise/enterprise.java

@@ -142,8 +142,8 @@ public class enterprise extends Controller {
             JSONObject whereObject = content.getJSONObject("where");
             if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
                 where.append(" and(");
-                where.append("t1.bank like'%").append(whereObject.getString("condition")).append("%' ");
-                where.append("or t1.bankcardno like'%").append(whereObject.getString("condition")).append("%' ");
+                where.append("t1.xncardnoabc like'%").append(whereObject.getString("condition")).append("%' ");
+
                 where.append(")");
             }
         }