Просмотр исходного кода

促销方案经销商及产品查询添加根据编号查询

hu 3 лет назад
Родитель
Сommit
ef41344fac

+ 1 - 0
src/custom/restcontroller/webmanage/sale/promotion/promotionAuth.java

@@ -90,6 +90,7 @@ public class promotionAuth extends Controller {
                 where.append(" and(");
                 where.append("t1.phonenumber like'%").append(whereObject.getString("condition")).append("%' ");
                 where.append("or t1.enterprisename like'%").append(whereObject.getString("condition")).append("%' ");
+                where.append("or t2.agentnum like'%").append(whereObject.getString("condition")).append("%' ");
                 where.append(")");
             }
         }

+ 1 - 1
src/custom/restcontroller/webmanage/sale/promotion/promotionItems.java

@@ -37,7 +37,7 @@ public class promotionItems extends Controller {
             JSONObject whereObject = content.getJSONObject("where");
             if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
                 where = where + "and  (t1.itemname like'%" + whereObject.getString("condition") + "%'"
-                        + " or t1.model like'%" + whereObject.getString("condition") + "%'" + " or t1.spec like'%"
+                        + " or t1.model like'%" + whereObject.getString("condition") + "%'" + " or t1.itemno like'%"
                         + whereObject.getString("condition") + "%'" + ")";
             }