浏览代码

商品组领域查询逻辑修改

hu 2 年之前
父节点
当前提交
8c28db05c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/custom/restcontroller/webmanage/sale/itemgroup/itemgroup.java

+ 1 - 1
src/custom/restcontroller/webmanage/sale/itemgroup/itemgroup.java

@@ -133,7 +133,7 @@ public class itemgroup extends Controller {
                 where = where + " and (t3.brandname ='" + whereObject.getString("brandname") + "') ";
             }
             if (whereObject.containsKey("tradefield") && !"".equals(whereObject.getString("tradefield"))) {
-                where = where + " and (t1.tradefield like '%" + whereObject.getString("tradefield") + "%') ";
+                where=where+" and t1.sa_itemgroupid in(select t1.sa_itemgroupid from sa_itemgroupmx t1 left join plm_item_tradefield t2 on t1.itemid=t2.itemid and t1.siteid=t2.siteid  where t2.tradefield like '%"+whereObject.getString("tradefield")+"%') ";
             }
             if (whereObject.containsKey("itemclassname") && !"".equals(whereObject.getString("itemclassname"))) {
                 where = where + " and (t5.itemclassname ='" + whereObject.getString("itemclassname") + "') ";