|
@@ -2,6 +2,7 @@ package restcontroller.webmanage.sale.dispatch;
|
|
|
|
|
|
import beans.data.BatchDeleteErr;
|
|
|
import beans.dispatch.Dispatch;
|
|
|
+import beans.itemclass.ItemClass;
|
|
|
import beans.parameter.Parameter;
|
|
|
import beans.salearea.SaleArea;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -438,6 +439,16 @@ public class dispatchItems extends Controller {
|
|
|
where.append(" and t1.sa_dispatchid in(SELECT sa_dispatchid FROM (SELECT sum(outwarehouseqty) outwarehouseqty,sa_dispatchid FROM sa_dispatch_items WHERE siteid='"+siteid+"' GROUP BY sa_dispatchid) a WHERE a.outwarehouseqty=0)");
|
|
|
}
|
|
|
}
|
|
|
+ if (whereObject.containsKey("itemclassid") && !"".equals(whereObject.getString("itemclassid"))) {
|
|
|
+
|
|
|
+ ArrayList<Long> list = ItemClass.getSubItemClassIds(this, whereObject.getLong("itemclassid"));
|
|
|
+ list.add(whereObject.getLong("itemclassid"));
|
|
|
+
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "查询营销类别下的商品");
|
|
|
+ sqlFactory.addParameter("siteid",siteid);
|
|
|
+ sqlFactory.addParameter_in("itemclassid", list);
|
|
|
+ where.append(" and t2.itemid in (").append(sqlFactory.getSQL()).append(") ");
|
|
|
+ }
|
|
|
}
|
|
|
boolean isExport = content.getBooleanValue("isExport");
|
|
|
// SQLFactory sqlFactory = new SQLFactory(this, "发货单明细所有列表查询", pageSize, pageNumber, pageSorting);
|