|
@@ -79,8 +79,6 @@ public class TsfCartService {
|
|
|
cartGb = params.iterator().next().getCartCompsList().iterator().next().getCartGb();
|
|
cartGb = params.iterator().next().getCartCompsList().iterator().next().getCartGb();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- log.info("CHECK GOODS_TYPE ::::: {}", goodsType);
|
|
|
|
|
-
|
|
|
|
|
// 장바구니 상품 및 재고 가능 여부 체크
|
|
// 장바구니 상품 및 재고 가능 여부 체크
|
|
|
if(TscConstants.GoodsType.SET.value().equals(goodsType)) {
|
|
if(TscConstants.GoodsType.SET.value().equals(goodsType)) {
|
|
|
for (Cart goodsParams : params) {
|
|
for (Cart goodsParams : params) {
|
|
@@ -213,6 +211,7 @@ public class TsfCartService {
|
|
|
result.put("goodsType", goodsType);
|
|
result.put("goodsType", goodsType);
|
|
|
result.put("cartGb", cartGb);
|
|
result.put("cartGb", cartGb);
|
|
|
result.put("message", "SUCCESS");
|
|
result.put("message", "SUCCESS");
|
|
|
|
|
+ result.put("custNo", login.getCustNo());
|
|
|
|
|
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
@@ -237,6 +236,7 @@ public class TsfCartService {
|
|
|
cart.setJsessionId(TscSession.getSessionId());
|
|
cart.setJsessionId(TscSession.getSessionId());
|
|
|
|
|
|
|
|
// 장바구니 보유 CART_SQ 쿼리
|
|
// 장바구니 보유 CART_SQ 쿼리
|
|
|
|
|
+ List<String> sendCartSqList = new ArrayList<String>();
|
|
|
for (Cart carts : params) {
|
|
for (Cart carts : params) {
|
|
|
int i = 1;
|
|
int i = 1;
|
|
|
Collection<Cart> cartInfos = carts.getCartCompsList();
|
|
Collection<Cart> cartInfos = carts.getCartCompsList();
|
|
@@ -296,7 +296,7 @@ public class TsfCartService {
|
|
|
cartDao.insertCartHst(cart); // 장바구니 이력 정보 저장
|
|
cartDao.insertCartHst(cart); // 장바구니 이력 정보 저장
|
|
|
|
|
|
|
|
cartSqs.add(cart.getCartSq());
|
|
cartSqs.add(cart.getCartSq());
|
|
|
- TsfSession.setAttribute("cartSqArr", cart.getCartSq()+"");
|
|
|
|
|
|
|
+ sendCartSqList.add(cart.getCartSq() + "");
|
|
|
|
|
|
|
|
for (Cart param : cartInfos) {
|
|
for (Cart param : cartInfos) {
|
|
|
param.setCartSq(cart.getCartSq());
|
|
param.setCartSq(cart.getCartSq());
|
|
@@ -309,6 +309,19 @@ public class TsfCartService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ StringBuilder cartSqComma = new StringBuilder();
|
|
|
|
|
+
|
|
|
|
|
+ int i = 0;
|
|
|
|
|
+ for(String cartSq : sendCartSqList) {
|
|
|
|
|
+ if(i > 0) {
|
|
|
|
|
+ cartSqComma.append(",");
|
|
|
|
|
+ }
|
|
|
|
|
+ cartSqComma.append(cartSq);
|
|
|
|
|
+ i++;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|