Kaynağa Gözat

商品组领域查询逻辑修改

hu 2 yıl önce
ebeveyn
işleme
8c28db05c6

+ 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") + "') ";