Commit 55c6830a authored by Quxl's avatar Quxl

x

parent f9b01ef5
...@@ -78,8 +78,8 @@ public class PromoServiceImpl implements PromoService { ...@@ -78,8 +78,8 @@ public class PromoServiceImpl implements PromoService {
" AND ag.nAgentID = at.nAgentID " + " AND ag.nAgentID = at.nAgentID " +
" AND b.nGoodsID = ag.nGoodsID " + " AND b.nGoodsID = ag.nGoodsID " +
" AND a.sPromoActionTypeID = '3' " + " AND a.sPromoActionTypeID = '3' " +
" AND a.nTag&3=2 " + // " AND a.nTag&3=2 " +
" AND b.nTag&3=2 " + // " AND b.nTag&3=2 " +
// " AND getdate() BETWEEN a.dPromoBeginDate AND a.dPromoEndDate " + // " AND getdate() BETWEEN a.dPromoBeginDate AND a.dPromoEndDate " +
// " AND CASE WHEN nUseCycle&1 = 1 THEN '1,' ELSE '' END + " + // " AND CASE WHEN nUseCycle&1 = 1 THEN '1,' ELSE '' END + " +
// " CASE WHEN nUseCycle&2 = 2 THEN '2,' ELSE '' END + " + // " CASE WHEN nUseCycle&2 = 2 THEN '2,' ELSE '' END + " +
...@@ -110,7 +110,7 @@ public class PromoServiceImpl implements PromoService { ...@@ -110,7 +110,7 @@ public class PromoServiceImpl implements PromoService {
@Override @Override
public Map<String, Object> getPromoDetail(String promoPaperNO) { public Map<String, Object> getPromoDetail(String promoPaperNO) {
return jdbcTemplate.queryForMap("select * from tPromo where sPromoPaperNO = ?", promoPaperNO); return jdbcTemplate.queryForMap("select * from tPromo where sPromoPaperNO = ? and nTag&3 = 2", promoPaperNO);
} }
} }
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