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

需求 #14915

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