|
@@ -363,7 +363,14 @@ public class Item extends Controller {
|
|
|
where.append(")");
|
|
where.append(")");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (whereObject.containsKey("hasprice") && !"".equals(whereObject.getString("hasprice"))) {
|
|
|
|
|
+ if(whereObject.getBooleanValue("hasprice")){
|
|
|
|
|
+ where.append(" and(");
|
|
|
|
|
+ where.append(" exists(select * from sa_itemprice where sa_itemprice.siteid=t1.siteid and sa_itemprice.itemid=t1.itemid and price>0)");
|
|
|
|
|
+ where.append(")");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (whereObject.containsKey("itemclassid") && !"".equals(whereObject.getString("itemclassid"))) {
|
|
if (whereObject.containsKey("itemclassid") && !"".equals(whereObject.getString("itemclassid"))) {
|
|
|
ArrayList<Long> list = ItemClass.getSubItemClassIds(this, whereObject.getLong("itemclassid"));
|
|
ArrayList<Long> list = ItemClass.getSubItemClassIds(this, whereObject.getLong("itemclassid"));
|