Commit a78c844f authored by Quxl's avatar Quxl

x

parent e8ed3e39
......@@ -44,7 +44,7 @@ public class PromoServiceImpl implements PromoService {
" CASE WHEN nUseCycle&32 = 32 THEN '6,' ELSE '' END +" +
" CASE WHEN nUseCycle&64 = 64 THEN '7' ELSE '' END LIKE '%' + convert(VARCHAR,datepart(weekday,getdate())) + '%' " +
" AND c.sShopNO = ?";
List<Map<String, Object>> list = jdbcTemplate.limit(sql, page, sCustTypeID);
List<Map<String, Object>> list = jdbcTemplate.limit(sql.replaceAll("\\s+", " "), page, sCustTypeID);
return list;
}
......@@ -93,7 +93,7 @@ public class PromoServiceImpl implements PromoService {
" AND a.sPromoPaperNO = ? " +
" AND b.sPromoGroupNO = ? " +
" AND c.sShopNO = ? ";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, sPromoPaperNO, sPromoGroupNO, sCustTypeID);
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql.replaceAll("\\s+", " "), sPromoPaperNO, sPromoGroupNO, sCustTypeID);
return list;
}
......@@ -103,11 +103,11 @@ public class PromoServiceImpl implements PromoService {
" SELECT sURL = sURL " +
" FROM tPromoPicture " +
" WHERE sPictureTypeID = ? " +
" AND nTag&3=3 " +
" AND nTag&3=2 " +
" AND sPromoPaperNO = ? " +
" AND sPromoGroupNO = ? " +
" ORDER BY nItem";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, sPictureTypeID, sPromoPaperNO, sPromoGroupNO);
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql.replaceAll("\\s+", " "), sPictureTypeID, sPromoPaperNO, sPromoGroupNO);
return list;
}
......
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