|
|
@@ -53,7 +53,7 @@ public class TitemGroup extends Controller {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
//where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
- where = where + " and exists(select *from titemgroup_saleclsnum where titemgroup_saleclsnum.siteid=t1.siteid and titemgroup_saleclsnum.fitemno=t1.fitemno and titemgroup_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
+ where = where + " and exists(select *from titemgroup_saleclsnum where titemgroup_saleclsnum.siteid=t1.siteid and titemgroup_saleclsnum.fgroupnum=t1.fgroupnum and titemgroup_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fbrand") && !"".equals(whereObject.getString("fbrand"))) {
|
|
|
@@ -170,7 +170,7 @@ public class TitemGroup extends Controller {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
//where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
- where = where + " and exists(select *from titemgroup_saleclsnum where titemgroup_saleclsnum.siteid=t1.siteid and titemgroup_saleclsnum.fitemno=t1.fitemno and titemgroup_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
+ where = where + " and exists(select *from titemgroup_saleclsnum where titemgroup_saleclsnum.siteid=t1.siteid and titemgroup_saleclsnum.fgroupnum=t1.fgroupnum and titemgroup_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fbrand") && !"".equals(whereObject.getString("fbrand"))) {
|