Commit e42ce73c authored by Quxl's avatar Quxl

x

parent 7849ed35
...@@ -384,7 +384,7 @@ public class GoodsServiceImpl implements GoodsService { ...@@ -384,7 +384,7 @@ public class GoodsServiceImpl implements GoodsService {
} }
detail.put("nProfitMargin", nProfitMargin); detail.put("nProfitMargin", nProfitMargin);
Map<String, List<Map<String, Object>>> picList = goodsPicList(goodsId, contractNo); Map<String, List<Map<String, Object>>> picList = goodsPicList(goodsId, contractNo);
String promoSql = "select pm.* from tYWPromoMain pm, tYWPromoDtl pd where pm.sOrgNO = ? and pm.sPromoPaperNO = pd.sPromoPaperNO and pd.nTag&3 = 2 and (pd.sAgentContractNO = ? or pd.sAgentContractNO is null) and (pd.nGoodsID = ? or pd.sCategoryNO = ? or pd.sBrandID = ?)"; String promoSql = "select pm.* from tYWPromoMain pm, tYWPromoDtl pd where pm.sOrgNO = ? and pm.sPromoPaperNO = pd.sPromoPaperNO and pm.nTag&3 = 2 and (pd.sAgentContractNO = ? or pd.sAgentContractNO is null) and (pd.nGoodsID = ? or pd.sCategoryNO = ? or pd.sBrandID = ?)";
Object[] args = new Object[] {orgNo, contractNo, goodsId, categoryNo, brandId}; Object[] args = new Object[] {orgNo, contractNo, goodsId, categoryNo, brandId};
List<Map<String, Object>> promoList = jdbcTemplate.queryForList(promoSql, args); List<Map<String, Object>> promoList = jdbcTemplate.queryForList(promoSql, args);
detail.put("promoList", promoList); detail.put("promoList", promoList);
......
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