Commit a1d8c4ba authored by chang20170705's avatar chang20170705

goods

parent e732219a
...@@ -59,6 +59,7 @@ public class GoodsServiceImpl implements GoodsService { ...@@ -59,6 +59,7 @@ public class GoodsServiceImpl implements GoodsService {
+"Price = acg.nSalePrice, " +"Price = acg.nSalePrice, "
+"MinQty = acg.nMinSaleQty, " +"MinQty = acg.nMinSaleQty, "
+"SaleUnit = acg.nSaleUnits, " +"SaleUnit = acg.nSaleUnits, "
+"Unit = acg.sUnit, "
+"MarketPrice = acg.nMarketPrice, " +"MarketPrice = acg.nMarketPrice, "
+"MarketUnit = acg.sMarketUnit, " +"MarketUnit = acg.sMarketUnit, "
+"SaleQty = sum(a.nSaleQty) " +"SaleQty = sum(a.nSaleQty) "
...@@ -68,7 +69,7 @@ public class GoodsServiceImpl implements GoodsService { ...@@ -68,7 +69,7 @@ public class GoodsServiceImpl implements GoodsService {
+"and a.nGoodsID = acg.nGoodsID " +"and a.nGoodsID = acg.nGoodsID "
+"WHERE acg.sOrgNO = ? " +"WHERE acg.sOrgNO = ? "
+"GROUP BY a.nGoodsID, g.sGoodsNO, g.sGoodsDesc, " +"GROUP BY a.nGoodsID, g.sGoodsNO, g.sGoodsDesc, "
+"acg.nSalePrice, acg.nMinSaleQty, acg.nSaleUnits, acg.nMarketPrice, acg.sMarketUnit " +"acg.nSalePrice, acg.nMinSaleQty, acg.nSaleUnits,acg.sUnit, acg.nMarketPrice, acg.sMarketUnit "
+"ORDER BY sum(a.nSaleQty) DESC "; +"ORDER BY sum(a.nSaleQty) DESC ";
String OrgNO=(String) map.get("OrgNO"); String OrgNO=(String) map.get("OrgNO");
listMap=jdbcTemplate.queryForList(sql, OrgNO); listMap=jdbcTemplate.queryForList(sql, OrgNO);
......
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