|
@@ -54,7 +54,7 @@ public class TsfCartService {
|
|
|
* 장바구니 저장
|
|
* 장바구니 저장
|
|
|
* 단품 : goodsCd, optCd, optCd1, optCd2
|
|
* 단품 : goodsCd, optCd, optCd1, optCd2
|
|
|
* 세트 : goodsCd,
|
|
* 세트 : goodsCd,
|
|
|
- * @param cart
|
|
|
|
|
|
|
+ * @param params
|
|
|
*/
|
|
*/
|
|
|
public void saveCartInfo(Collection<Cart> params) {
|
|
public void saveCartInfo(Collection<Cart> params) {
|
|
|
Cart cart = new Cart();
|
|
Cart cart = new Cart();
|
|
@@ -318,7 +318,7 @@ public class TsfCartService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 다다익선 할인 금액 조회
|
|
* 다다익선 할인 금액 조회
|
|
|
- * @param Order
|
|
|
|
|
|
|
+ * @param param
|
|
|
* param.cartSqArr[] : 필수
|
|
* param.cartSqArr[] : 필수
|
|
|
* @return String
|
|
* @return String
|
|
|
* @author xodud1202
|
|
* @author xodud1202
|
|
@@ -334,8 +334,6 @@ public class TsfCartService {
|
|
|
|
|
|
|
|
// 장바구니 등록 다다익선 일련번호 지정
|
|
// 장바구니 등록 다다익선 일련번호 지정
|
|
|
List<Integer> applySq = new ArrayList<Integer>();
|
|
List<Integer> applySq = new ArrayList<Integer>();
|
|
|
- List<Integer> qtyApplySq = new ArrayList<Integer>();
|
|
|
|
|
- List<Integer> amtApplySq = new ArrayList<Integer>();
|
|
|
|
|
|
|
|
|
|
for(Order tmtbApply : tmtbApplyList) {
|
|
for(Order tmtbApply : tmtbApplyList) {
|
|
|
if(TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getQtyGoodsGb()) || TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getAmtGoodsGb())) {
|
|
if(TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getQtyGoodsGb()) || TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getAmtGoodsGb())) {
|
|
@@ -512,7 +510,7 @@ public class TsfCartService {
|
|
|
/**
|
|
/**
|
|
|
* 장바구니 배송단위별 상품 정보 조회
|
|
* 장바구니 배송단위별 상품 정보 조회
|
|
|
*
|
|
*
|
|
|
- * @param Order
|
|
|
|
|
|
|
+ * @param cartGoodsList
|
|
|
* @author jsh77b
|
|
* @author jsh77b
|
|
|
* @since 2021. 02. 02
|
|
* @since 2021. 02. 02
|
|
|
*/
|
|
*/
|
|
@@ -711,6 +709,7 @@ public class TsfCartService {
|
|
|
comp.setCartSq(cart.getCartSq());
|
|
comp.setCartSq(cart.getCartSq());
|
|
|
comp.setCartColorList(cartDao.selectCartGoodsColorList(comp));
|
|
comp.setCartColorList(cartDao.selectCartGoodsColorList(comp));
|
|
|
for(Cart color : comp.getCartColorList()) {
|
|
for(Cart color : comp.getCartColorList()) {
|
|
|
|
|
+ color.setCartSq(comp.getCartSq());
|
|
|
color.setCartSizeList(cartDao.selectCartGoodsSizeList(color));
|
|
color.setCartSizeList(cartDao.selectCartGoodsSizeList(color));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -725,6 +724,7 @@ public class TsfCartService {
|
|
|
|
|
|
|
|
if("Y".equals(cart.getSelfGoodsYn())) { // 자사 상품은 TB_GOODS_IMG.COLOR_CD = TB_OPTION.OPT_CD1
|
|
if("Y".equals(cart.getSelfGoodsYn())) { // 자사 상품은 TB_GOODS_IMG.COLOR_CD = TB_OPTION.OPT_CD1
|
|
|
for(Cart color : comp.getCartColorList()) {
|
|
for(Cart color : comp.getCartColorList()) {
|
|
|
|
|
+ color.setCartSq(cart.getCartSq());
|
|
|
color.setCartImgList(cartDao.selectCartSelfGoodsOptionImgList(color));
|
|
color.setCartImgList(cartDao.selectCartSelfGoodsOptionImgList(color));
|
|
|
color.setCartSizeList(cartDao.selectCartGoodsSizeList(color));
|
|
color.setCartSizeList(cartDao.selectCartGoodsSizeList(color));
|
|
|
}
|
|
}
|