|
|
@@ -82,6 +82,8 @@ public class TsfCartService {
|
|
|
login.setCustGrade("G110");
|
|
|
}
|
|
|
|
|
|
+ result.put("custNo", login.getCustNo());
|
|
|
+
|
|
|
String goodsType = params.iterator().next().getGoodsType();
|
|
|
String cartGb = params.iterator().next().getCartGb();
|
|
|
if(StringUtils.isEmpty(goodsType)) {
|
|
|
@@ -281,7 +283,6 @@ public class TsfCartService {
|
|
|
result.put("goodsType", goodsType);
|
|
|
result.put("cartGb", cartGb);
|
|
|
result.put("message", "SUCCESS");
|
|
|
- result.put("custNo", login.getCustNo());
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
@@ -319,6 +320,7 @@ public class TsfCartService {
|
|
|
}
|
|
|
|
|
|
cart.setJsessionId(TscSession.getSessionId());
|
|
|
+ boolean chkGoOrderForm = false;
|
|
|
|
|
|
List<String> sendCartSqList = new ArrayList<String>();
|
|
|
for (Cart carts : params) {
|
|
|
@@ -363,7 +365,11 @@ public class TsfCartService {
|
|
|
} else {
|
|
|
cart.setCartGb(TscConstants.CartGb.MOB_ORDER.value());
|
|
|
}
|
|
|
+ if("O".equals(cartInfos.iterator().next().getCartGb())) {
|
|
|
+ chkGoOrderForm = true;
|
|
|
+ }
|
|
|
} else if (!StringUtils.isEmpty(cartInfos.iterator().next().getCartGb()) && "G".equals(cartInfos.iterator().next().getCartGb())) {
|
|
|
+ chkGoOrderForm = true;
|
|
|
cart.setCartGb(TscConstants.CartGb.GIFT.value());
|
|
|
} else {
|
|
|
cart.setCartGb(TscConstants.CartGb.CREATE_ORDER.value());
|
|
|
@@ -408,8 +414,9 @@ public class TsfCartService {
|
|
|
cartSqComma.append(cartSq);
|
|
|
i++;
|
|
|
}
|
|
|
-
|
|
|
- TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
+ if(chkGoOrderForm) {
|
|
|
+ TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Transactional("shopTxnManager")
|
|
|
@@ -483,8 +490,9 @@ public class TsfCartService {
|
|
|
cartSqComma.append(cartSq);
|
|
|
i++;
|
|
|
}
|
|
|
-
|
|
|
- TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
+ if (!StringUtils.isEmpty(params.iterator().next().getCartGb()) && ("O".equals(params.iterator().next().getCartGb()) || "G".equals(params.iterator().next().getCartGb()))) {
|
|
|
+ TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 장바구니 상품 리스트 조회 서비스
|