|
@@ -238,21 +238,7 @@ public class sendplandetail extends Controller {
|
|
|
@CACHEING
|
|
@CACHEING
|
|
|
public String queryList_sendplan() throws YosException {
|
|
public String queryList_sendplan() throws YosException {
|
|
|
Long sa_sendplanid = content.getLongValue("sa_sendplanid");
|
|
Long sa_sendplanid = content.getLongValue("sa_sendplanid");
|
|
|
- /*
|
|
|
|
|
- 过滤条件设置
|
|
|
|
|
- */
|
|
|
|
|
- StringBuffer where = new StringBuffer(" 1=1 ");
|
|
|
|
|
- if (content.containsKey("where")) {
|
|
|
|
|
- JSONObject whereObject = content.getJSONObject("where");
|
|
|
|
|
- if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
|
|
- where.append(" and(");
|
|
|
|
|
- where.append("t1.outplace like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
|
|
- where.append("or t2.sonum like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
|
|
- where.append("or t4.agentnum like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
|
|
- where.append("or t5.enterprisename like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
|
|
- where.append(")");
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "发货计划订单未发货量(简略)");
|
|
SQLFactory sqlFactory = new SQLFactory(this, "发货计划订单未发货量(简略)");
|
|
|
sqlFactory.addParameter_SQL("where", "1=1");
|
|
sqlFactory.addParameter_SQL("where", "1=1");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
@@ -269,12 +255,13 @@ public class sendplandetail extends Controller {
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "st_invbal", "t9", "t9.itemid = t3.itemid and stockid='103'");
|
|
querySQL.addJoinTable(JOINTYPE.left, "st_invbal", "t9", "t9.itemid = t3.itemid and stockid='103'");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "st_invbal", "t10", "t10.itemid = t3.itemid and stockid='109'");
|
|
querySQL.addJoinTable(JOINTYPE.left, "st_invbal", "t10", "t10.itemid = t3.itemid and stockid='109'");
|
|
|
querySQL.setSiteid(siteid);
|
|
querySQL.setSiteid(siteid);
|
|
|
- querySQL.setWhere(where.toString());
|
|
|
|
|
|
|
+ querySQL.setCondition("t1.outplace", "t2.sonum", "t4.agentnum", "t5.enterprisename");
|
|
|
querySQL.addQueryFields("willoutqty_jh", "t7.willoutqty");
|
|
querySQL.addQueryFields("willoutqty_jh", "t7.willoutqty");
|
|
|
querySQL.addQueryFields("qty_xs", "t8.qty");
|
|
querySQL.addQueryFields("qty_xs", "t8.qty");
|
|
|
querySQL.addQueryFields("qty_tq", "t9.qty");
|
|
querySQL.addQueryFields("qty_tq", "t9.qty");
|
|
|
querySQL.addQueryFields("qty_mq", "t10.qty");
|
|
querySQL.addQueryFields("qty_mq", "t10.qty");
|
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
|
|
|
+ querySQL.setWhere("sa_sendplanid", sa_sendplanid);
|
|
|
Rows rows = querySQL.query();
|
|
Rows rows = querySQL.query();
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
}
|