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