@@ -123,8 +123,11 @@ public class CartServiceImpl implements CartService {
...
@@ -123,8 +123,11 @@ public class CartServiceImpl implements CartService {
}
}
Stringsql="select sPromoPaperNO from tCart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"' and nTag = 0"+StringUtil.join(", "," and nIdx in (",")",nIdx);
Stringsql="select sPromoPaperNO from tCart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"' and nTag = 0"+StringUtil.join(", "," and nIdx in (",")",nIdx);
sql="delete from tCart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"' and nTag = 1 and sPromoPaperNO in ("+sql+")";
Stringsql1="delete from tCart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"' and nTag = 1 and sPromoPaperNO in ("+sql+")";
jdbcTemplate.executeUpdate(sql);
Stringsql2="delete from tCartTempItem where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"' and nTag = 1 and sPromoPaperNO in ("+sql+")";
jdbcTemplate.executeUpdate(sql1);
jdbcTemplate.executeUpdate(sql2);
jdbcTemplate.executeUpdate("delete from tCart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"'"+StringUtil.join(", "," and nIdx in (",")",nIdx));
jdbcTemplate.executeUpdate("delete from tCart where sOrgNO = '"+orgNo+"' and sShopNO = '"+shopNO+"'"+StringUtil.join(", "," and nIdx in (",")",nIdx));