Commit a9feda07 authored by 张永's avatar 张永

1

parent 1c5646e8
...@@ -1022,11 +1022,10 @@ public class OrderServiceImpl implements OrderService { ...@@ -1022,11 +1022,10 @@ public class OrderServiceImpl implements OrderService {
+ " from tSalesOrderSubDtl a join tSalesOrderSub b on a.sSubOrderID = b.sSubOrderID left join tAgentContractGoods ag on a.nAgentID = ag.nAgentID " + " from tSalesOrderSubDtl a join tSalesOrderSub b on a.sSubOrderID = b.sSubOrderID left join tAgentContractGoods ag on a.nAgentID = ag.nAgentID "
+ " and a.sAgentContractNO = ag.sAgentContractNO and a.nGoodsID = ag.nGoodsID " + " and a.sAgentContractNO = ag.sAgentContractNO and a.nGoodsID = ag.nGoodsID "
+ " left join V_GetminAgentGoodsPic gp on a.nAgentID = gp.nAgentID and a.nGoodsID = gp.nGoodsID " + " left join V_GetminAgentGoodsPic gp on a.nAgentID = gp.nAgentID and a.nGoodsID = gp.nGoodsID "
+ " where a.sSubOrderID in (?) " + + " where a.sSubOrderID in (" + StringUtil.join("', '", "'", "'", orderIdList) + ") " +
" order by a.nIdx" ; " order by a.nIdx" ;
List<Map<String, Object>> goodsList = jdbcTemplate.queryForList(detailSql);
List<Map<String, Object>> goodsList = jdbcTemplate.queryForList(detailSql, orderIdList.toArray());
Map<String, List<Map<String, Object>>> gmList = Util.listToML(goodsList, "SalesOrderID"); Map<String, List<Map<String, Object>>> gmList = Util.listToML(goodsList, "SalesOrderID");
for(Map<String, Object> orderMap : orderList) { for(Map<String, Object> orderMap : orderList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment