Commit fa19dff2 authored by 黄毅's avatar 黄毅

1

parent 19e41fa2
...@@ -45,9 +45,7 @@ public class GoodsServiceImpl implements GoodsService { ...@@ -45,9 +45,7 @@ public class GoodsServiceImpl implements GoodsService {
} }
sql += " group by a.nGoodsID, g.sGoodsNO, g.sGoodsDesc, acg.nSalePrice, acg.sSpec, acg.sUnit, acg.nMinSaleQty, acg.nSaleUnits, acg.nMarketPrice, acg.sMarketUnit order by " sql += " group by a.nGoodsID, g.sGoodsNO, g.sGoodsDesc, acg.nSalePrice, acg.sSpec, acg.sUnit, acg.nMinSaleQty, acg.nSaleUnits, acg.nMarketPrice, acg.sMarketUnit order by "
+ " sum(a.nSaleQty) desc"; + " sum(a.nSaleQty) desc";
System.out.println(sql); return jdbcTemplate.limit(sql, page);
return jdbcTemplate.queryForList(sql);
//return jdbcTemplate.limit(sql, page);
} }
} }
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