|
|
@@ -119,6 +119,11 @@ public class itemgroup extends Controller {
|
|
|
+ "%' or s2.byname like '%" + whereObject.getString("condition")
|
|
|
+ "%' or s2.model like '%" + whereObject.getString("condition")
|
|
|
+ "%') and s1.sa_itemgroupid=t1.sa_itemgroupid) ) ";
|
|
|
+
|
|
|
+ pageSorting="t1.groupname like'%" + whereObject.getString("condition")+"%' desc,exists(select 1 from sa_itemgroupmx s1 " +
|
|
|
+ " LEFT JOIN plm_item s2 ON s1.itemid = s2.itemid AND s1.siteid = s2.siteid where s2.itemname like'%"+whereObject.getString("condition")+"%') desc,exists(select 1 from sa_itemgroupmx s1 " +
|
|
|
+ " LEFT JOIN plm_item s2 ON s1.itemid = s2.itemid AND s1.siteid = s2.siteid where s2.itemno like'%"+whereObject.getString("condition")+"%') desc,t1.groupnum like'%" + whereObject.getString("condition")+"%' desc";
|
|
|
+
|
|
|
}
|
|
|
if (whereObject.containsKey("tradefield") && !"".equals(whereObject.getString("tradefield"))) {
|
|
|
where = where + " and (t1.tradefield like'%" + whereObject.getString("tradefield") + "%') ";
|