|
@@ -301,6 +301,7 @@ public class TsfCartService {
|
|
|
public void saveSetTypeCartInfo(Collection<Cart> params, List<Integer> cartSqs) {
|
|
public void saveSetTypeCartInfo(Collection<Cart> params, List<Integer> cartSqs) {
|
|
|
Cart cart = new Cart();
|
|
Cart cart = new Cart();
|
|
|
StringBuilder sb = new StringBuilder();
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
+ String cartGb = "";
|
|
|
|
|
|
|
|
// 로그인 정보
|
|
// 로그인 정보
|
|
|
if(TsfSession.isLogin()) {
|
|
if(TsfSession.isLogin()) {
|
|
@@ -409,6 +410,7 @@ public class TsfCartService {
|
|
|
cartSqComma.append(cartSq);
|
|
cartSqComma.append(cartSq);
|
|
|
i++;
|
|
i++;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if(chkGoOrderForm) {
|
|
if(chkGoOrderForm) {
|
|
|
TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
}
|
|
}
|
|
@@ -441,6 +443,7 @@ public class TsfCartService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 세션 추가용 변수
|
|
// 세션 추가용 변수
|
|
|
|
|
+ String cartGb = params.iterator().next().getCartGb();
|
|
|
List<String> sendCartSqList = new ArrayList<String>();
|
|
List<String> sendCartSqList = new ArrayList<String>();
|
|
|
for(Cart item : params) {
|
|
for(Cart item : params) {
|
|
|
item.setCartGb(cart.getCartGb());
|
|
item.setCartGb(cart.getCartGb());
|
|
@@ -485,7 +488,8 @@ public class TsfCartService {
|
|
|
cartSqComma.append(cartSq);
|
|
cartSqComma.append(cartSq);
|
|
|
i++;
|
|
i++;
|
|
|
}
|
|
}
|
|
|
- if (!StringUtils.isEmpty(params.iterator().next().getCartGb()) && ("O".equals(params.iterator().next().getCartGb()) || "G".equals(params.iterator().next().getCartGb()))) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (!StringUtils.isEmpty(cartGb) && ("O".equals(cartGb) || "G".equals(cartGb))) {
|
|
|
TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
TsfSession.setAttribute("cartSqArr", cartSqComma.toString());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|