Commit a1d8c4ba authored by chang20170705's avatar chang20170705

goods

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