Commit 163ca59f authored by 张永's avatar 张永

需求 #14915

parent 9ce56a50
......@@ -854,16 +854,13 @@ public class CartQueryServiceImpl implements CartQueryService {
}
String sqlCustBwList = "select bw.sPromoPaperNO from tPromoCustBWList bw, tCustomer c, tShop s where bw.sShopNO = c.sCustTypeID and c.sCustNO = s.sCustNO and s.sShopNO = '" + shopNo + "'";
String sqlPromoTag =
"SELECT "
+ "c.sPromoPaperNO, "
+ "p.nTag, "
+ "p.dPromoBeginDate, "
+ "p.dPromoEndDate "
+ "FROM "
+ "tCart c "
+ "LEFT JOIN tYWPromoMain p ON p.sPromoPaperNO = c.sPromoPaperNO "
+ "WHERE "
+ "c.sShopNO = '" + shopNo + "'";
"SELECT c.sPromoPaperNO, p.nTag, p.dPromoBeginDate, p.dPromoEndDate "
+ "FROM tCart c left join (select a.sPromoPaperNO, a.nTag, a.dPromoBeginDate, a.dPromoEndDate, b.nGoodsID "
+ " from tYWPromoMain a, tYWPromoDtl b "
+ " where a.sPromoPaperNO = b.sPromoPaperNO "
+ " and a.sPromoPaperNORuleID = b.sPromoPaperNO + isnull(convert(varchar,b.nRuleID),'') "
+ " ) p on p.sPromoPaperNO = c.sPromoPaperNO and p.nGoodsID = c.nGoodsID "
+ "WHERE c.sShopNO = '" + shopNo + "'";
String sqlClearPromoNo =
"SELECT "
+ "pn.sPromoPaperNO "
......
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