StringsCustTypeID=jdbcTemplate.queryForString("select c.sCustTypeID from tCustomer c, tShop s where c.sCustNO = s.sCustNO and s.sShopNO = ?",shopNo);
StringsqlCustBwList="select bw.sPromoPaperNO from tPromoCustBWList bw, tCustomer c, tShop s where bw.sShopNO = c.sCustTypeID and c.sCustNO = s.sCustNO and s.sShopNO = '"+shopNo+"'";
StringsqlCustBwList="select bw.sPromoPaperNO from tPromoCustBWList bw, tCustomer c, tShop s where bw.sShopNO = c.sCustTypeID and c.sCustNO = s.sCustNO and s.sShopNO = '"+shopNo+"'";
StringsqlPromoTag=
StringsqlPromoTag=
"SELECT "
"SELECT "
...
@@ -950,7 +951,7 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -950,7 +951,7 @@ public class CartRedisServiceImpl implements CartRedisService {
+"DELETE tCart WHERE sShopNO = '"+shopNo+"' AND nTag = 1 AND sPromoPaperNO IN ("+sqlClearPromoNo+")"+Util.LINE_SEPARATOR
+"DELETE tCart WHERE sShopNO = '"+shopNo+"' AND nTag = 1 AND sPromoPaperNO IN ("+sqlClearPromoNo+")"+Util.LINE_SEPARATOR
+"UPDATE tCart SET sPromoGroupNO = NULL, sPromoPaperNO = NULL WHERE sShopNO = '"+shopNo+"' AND sPromoPaperNO IN ("+sqlClearPromoNo+")"+Util.LINE_SEPARATOR
+"UPDATE tCart SET sPromoGroupNO = NULL, sPromoPaperNO = NULL WHERE sShopNO = '"+shopNo+"' AND sPromoPaperNO IN ("+sqlClearPromoNo+")"+Util.LINE_SEPARATOR
+"UPDATE tCart SET sPromoGroupNO = NULL, sPromoPaperNO = NULL WHERE sShopNO = '"+shopNo+"' AND sPromoPaperNO NOT IN ("+sqlCustBwList+")";
+"UPDATE tCart SET sPromoGroupNO = NULL, sPromoPaperNO = NULL WHERE sShopNO = '"+shopNo+"' AND sPromoPaperNO NOT IN ("+sqlCustBwList+")";
StringsqlACart="select * from V_Cart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNo+"' order by nIdx";
StringsqlACart="select t.*, ap.nRealSalePrice nApSalePrice from V_Cart t left join tAgentCustTypePrice ap on ap.sCustTypeID = '"+sCustTypeID+"' and ap.sAgentContractNO = t.sAgentContractNO and ap.nGoodsID = t.nGoodsID where t.sOrgNO = '"+orgNo+"' and t.sShopNO = '"+shopNo+"' order by t.nIdx";
Stringsqlp=""
Stringsqlp=""
+" SELECT "
+" SELECT "
...
@@ -1027,6 +1028,10 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -1027,6 +1028,10 @@ public class CartRedisServiceImpl implements CartRedisService {