|
|
@@ -2,6 +2,8 @@ package com.style24.front.biz.service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collection;
|
|
|
+import java.util.Collections;
|
|
|
+import java.util.Comparator;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
@@ -21,6 +23,7 @@ import com.style24.persistence.domain.Cart;
|
|
|
import com.style24.persistence.domain.Coupon;
|
|
|
import com.style24.persistence.domain.Goods;
|
|
|
import com.style24.persistence.domain.GoodsStock;
|
|
|
+import com.style24.persistence.domain.Login;
|
|
|
import com.style24.persistence.domain.Order;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -56,13 +59,17 @@ public class TsfCartService {
|
|
|
|
|
|
|
|
|
// 로그인 유무 확인 (로그인이 되어 있지 않으면 regNo 를 0으로 장바구니에 저장한다.)
|
|
|
- // TODO 로그인여부체크
|
|
|
+ Login login = new Login();
|
|
|
+ if(TsfSession.isLogin()) {
|
|
|
+ login = TsfSession.getInfo();
|
|
|
+ }
|
|
|
|
|
|
// 장바구니 상품 및 재고 가능 여부 체크
|
|
|
for(Cart param : params) {
|
|
|
cart.setJsessionId(TscSession.getSessionId());
|
|
|
- cart.setRegNo(0);
|
|
|
- cart.setUpdNo(0);
|
|
|
+ cart.setRegNo(login.getCustNo());
|
|
|
+ cart.setUpdNo(login.getCustNo());
|
|
|
+ cart.setCustNo(login.getCustNo());
|
|
|
|
|
|
// 상품 마스터 정보 확인
|
|
|
Goods goods = new Goods();
|
|
|
@@ -114,10 +121,14 @@ public class TsfCartService {
|
|
|
Cart cart = new Cart();
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
|
- // TODO 로그인 정보 세팅
|
|
|
- cart.setRegNo(1000006);
|
|
|
- cart.setCustNo(1000006);
|
|
|
- cart.setUpdNo(1000006);
|
|
|
+ // 로그인 정보
|
|
|
+ if(TsfSession.isLogin()) {
|
|
|
+ Login login = TsfSession.getInfo();
|
|
|
+ cart.setRegNo(login.getCustNo());
|
|
|
+ cart.setCustNo(login.getCustNo());
|
|
|
+ cart.setUpdNo(login.getCustNo());
|
|
|
+ }
|
|
|
+
|
|
|
cart.setJsessionId(TscSession.getSessionId());
|
|
|
|
|
|
// 장바구니 보유 CART_SQ 쿼리
|
|
|
@@ -187,11 +198,15 @@ public class TsfCartService {
|
|
|
|
|
|
@Transactional("shopTxnManager")
|
|
|
public void saveNormalDealCartInfo(Cart param) {
|
|
|
- // TODO 로그인 정보 세팅
|
|
|
+ // 로그인 정보
|
|
|
+ if(TsfSession.isLogin()) {
|
|
|
+ Login login = TsfSession.getInfo();
|
|
|
+ param.setRegNo(login.getCustNo());
|
|
|
+ param.setCustNo(login.getCustNo());
|
|
|
+ param.setUpdNo(login.getCustNo());
|
|
|
+ }
|
|
|
param.setJsessionId(TscSession.getSessionId());
|
|
|
- param.setRegNo(1000006);
|
|
|
- param.setCustNo(1000006);
|
|
|
- param.setUpdNo(1000006);
|
|
|
+
|
|
|
|
|
|
if("C".equals(param.getCartGb())) {
|
|
|
param.setCartGb(TscConstants.CartGb.CART.value());
|
|
|
@@ -229,17 +244,14 @@ public class TsfCartService {
|
|
|
public Order getCartGoodsList(Order order) {
|
|
|
//ModelAndView result = new ModelAndView();
|
|
|
GagaMap result = new GagaMap(); // return
|
|
|
- List<Integer> cartSqs = new ArrayList<Integer>(); // 품절 제외 장바구니 리스트
|
|
|
+ List<Integer> cartSqs = new ArrayList<Integer>(); // 품절 제외 장바구니 리스트
|
|
|
|
|
|
- // Device check
|
|
|
+ // 로그인 체크
|
|
|
+ if(TsfSession.isLogin()) {
|
|
|
+ order.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
+ }
|
|
|
order.setFrontGb(TsfSession.getFrontGb());
|
|
|
-
|
|
|
- // TODO 로그인 체크
|
|
|
order.setJsessionId(TscSession.getSessionId());
|
|
|
- order.setJsessionId("aaec62cc-5f91-47bb-ba65-ebc9a61385cf");
|
|
|
- order.setCustNo(1000006);
|
|
|
- order.setRegNo(1000006);
|
|
|
- order.setUpdNo(1000006);
|
|
|
|
|
|
// 장바구니 상품 조회
|
|
|
Collection<Order> cartGoodsList = cartDao.getCartGoodsList(order);
|
|
|
@@ -253,39 +265,38 @@ public class TsfCartService {
|
|
|
|
|
|
order.setCartSqArr(cartSqs.stream().mapToInt(Integer::intValue).toArray());
|
|
|
|
|
|
- // 다다익선 할인 상품 조회 (품절 상품 제외)
|
|
|
- Collection<Order> moreBetterAmtList = getMoreBetterAmtList(order);
|
|
|
-
|
|
|
- // 다다익선 할인 정보 및 상품 정보 장바구니에 등록
|
|
|
- for(Order cart : cartGoodsList) {
|
|
|
- for(Order info : moreBetterAmtList) {
|
|
|
- if(cart.getCartSq() == info.getCartSq()) {
|
|
|
- cart.setTmtbDcAmt(info.getTmtbDcAmt());
|
|
|
- cart.setApplyAmtSectionYn(info.getApplyAmtSectionYn());
|
|
|
- cart.setApplyQtySectionYn(info.getApplyQtySectionYn());
|
|
|
- cart.setQtyTmtbNm(info.getQtyTmtbNm());
|
|
|
- cart.setAmtTmtbNm(info.getAmtTmtbNm());
|
|
|
- cart.setQtyTmtbSq(info.getQtyTmtbSq());
|
|
|
- cart.setAmtTmtbSq(info.getAmtTmtbSq());
|
|
|
+ if(cartSqs.size() > 0) {
|
|
|
+ // 다다익선 할인 상품 조회 (품절 상품 제외)
|
|
|
+ Collection<Order> moreBetterAmtList = getMoreBetterAmtList(order);
|
|
|
+
|
|
|
+ // 다다익선 할인 정보 및 상품 정보 장바구니에 등록
|
|
|
+ for (Order cart : cartGoodsList) {
|
|
|
+ for (Order info : moreBetterAmtList) {
|
|
|
+ if (cart.getCartSq() == info.getCartSq()) {
|
|
|
+ cart.setTmtbDcAmt(info.getTmtbDcAmt());
|
|
|
+ cart.setApplyAmtSectionYn(info.getApplyAmtSectionYn());
|
|
|
+ cart.setApplyQtySectionYn(info.getApplyQtySectionYn());
|
|
|
+ cart.setQtyTmtbNm(info.getQtyTmtbNm());
|
|
|
+ cart.setAmtTmtbNm(info.getAmtTmtbNm());
|
|
|
+ cart.setQtyTmtbSq(info.getQtyTmtbSq());
|
|
|
+ cart.setAmtTmtbSq(info.getAmtTmtbSq());
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- if(cart.getCartSq() == 8) {
|
|
|
- log.info("CHECK CART >> {}, {}, {}",cart.getCurrPrice(),cart.getGoodsQty(), cart.getTmtbDcAmt());
|
|
|
- }
|
|
|
|
|
|
- if(cart.getTmtbDcAmt() == 0) {
|
|
|
- cart.setTmtbDcAmt(cart.getCurrPrice() * cart.getGoodsQty());
|
|
|
+ if (cart.getTmtbDcAmt() == 0) {
|
|
|
+ cart.setTmtbDcAmt(cart.getCurrPrice());
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- // 장바구니 업체별 배송비 계산
|
|
|
- setCartListDelvFeeInfo(cartGoodsList);
|
|
|
+ // 장바구니 업체별 배송비 계산
|
|
|
+ setCartListDelvFeeInfo(cartGoodsList);
|
|
|
|
|
|
- // 자사 / 입점업체 리스트 분리
|
|
|
- order = getCartDelvGoodsCntList(cartGoodsList);
|
|
|
+ // 자사 / 입점업체 리스트 분리
|
|
|
+ order = getCartDelvGoodsCntList(cartGoodsList);
|
|
|
|
|
|
- // 총계 금액 계산
|
|
|
- setCartListTotAmtInfo(cartGoodsList, order);
|
|
|
+ // 총계 금액 계산
|
|
|
+ setCartListTotAmtInfo(cartGoodsList, order);
|
|
|
+ }
|
|
|
|
|
|
return order;
|
|
|
}
|
|
|
@@ -312,10 +323,10 @@ public class TsfCartService {
|
|
|
List<Integer> amtApplySq = new ArrayList<Integer>();
|
|
|
for(Order tmtbApply : tmtbApplyList) {
|
|
|
if(TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getQtyGoodsGb()) || TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getAmtGoodsGb())) {
|
|
|
- if(tmtbApply.getQtyTmtbSq() > 0) {
|
|
|
+ if(TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getQtyGoodsGb())) {
|
|
|
applySq.add(tmtbApply.getQtyTmtbSq());
|
|
|
}
|
|
|
- if(tmtbApply.getAmtTmtbSq() > 0) {
|
|
|
+ if(TscConstants.GoodsGb.BASE.value().equals(tmtbApply.getAmtGoodsGb())) {
|
|
|
applySq.add(tmtbApply.getAmtTmtbSq());
|
|
|
}
|
|
|
}
|
|
|
@@ -323,22 +334,21 @@ public class TsfCartService {
|
|
|
param.setTmtbSqs(applySq.stream().mapToInt(Integer::intValue).toArray());
|
|
|
|
|
|
// 섹션 정보 조회 후 할인 여부 판단
|
|
|
- Collection<Order> tmtbQtySectionList = cartDao.selectTmtbSectionValList(applySq);
|
|
|
- for(Order applyInfo : tmtbApplyList) { // 기준 상품 및 다다익선 정보 조회
|
|
|
+ Collection<Order> tmtbSectionList = cartDao.selectTmtbSectionValList(applySq);
|
|
|
+ for(Order applyInfo : tmtbApplyList) { // 기준 상품 및 다다익선 정보 조회
|
|
|
// 다다익선 할인 조건 조회
|
|
|
- for(Order section : tmtbQtySectionList) {
|
|
|
+ for(Order section : tmtbSectionList) {
|
|
|
if(applyInfo.getQtyTmtbSq() == section.getTmtbSq()) {
|
|
|
-
|
|
|
// 수량 적용 다다익선
|
|
|
- if (section.getSectionVal() <= applyInfo.getQtyTmtbSumQty()) { // 장바구니 수량 할인 기준 달성시
|
|
|
- if (applyInfo.getSectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
- applyInfo.setSectionVal(section.getSectionVal());
|
|
|
+ if (section.getSectionVal() <= applyInfo.getQtyTmtbSumQty()) { // 장바구니 수량 할인 기준 달성시
|
|
|
+ if (applyInfo.getQtySectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
+ applyInfo.setQtySectionVal(section.getSectionVal());
|
|
|
applyInfo.setApplyQtySectionYn("Y");
|
|
|
- applyInfo.setDcWay(section.getDcWay());
|
|
|
- applyInfo.setDcVal(section.getDcVal());
|
|
|
+ applyInfo.setQtyDcWay(section.getDcWay());
|
|
|
+ applyInfo.setQtyDcVal(section.getDcVal());
|
|
|
}
|
|
|
} else {
|
|
|
- if (applyInfo.getSectionVal() < 1 && applyInfo.getQtyGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
+ if (applyInfo.getQtySectionVal() < 1 && applyInfo.getQtyGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
applyInfo.setApplyQtySectionYn("N");
|
|
|
}
|
|
|
}
|
|
|
@@ -346,15 +356,15 @@ public class TsfCartService {
|
|
|
|
|
|
if(applyInfo.getAmtTmtbSq() == section.getTmtbSq()) {
|
|
|
// 금액 적용 다다익선
|
|
|
- if(section.getSectionVal() <= applyInfo.getAmtTmtbSumAmt()) { // 장바구니 수량 할인 기준 달성시
|
|
|
- if(applyInfo.getSectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
- applyInfo.setSectionVal(section.getSectionVal());
|
|
|
+ if(section.getSectionVal() <= applyInfo.getAmtTmtbSumAmt()) { // 장바구니 수량 할인 기준 달성시
|
|
|
+ if(applyInfo.getAmtSectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
+ applyInfo.setAmtSectionVal(section.getSectionVal());
|
|
|
applyInfo.setApplyAmtSectionYn("Y");
|
|
|
- applyInfo.setDcWay(section.getDcWay());
|
|
|
- applyInfo.setDcVal(section.getDcVal());
|
|
|
+ applyInfo.setAmtDcWay(section.getDcWay());
|
|
|
+ applyInfo.setAmtDcVal(section.getDcVal());
|
|
|
}
|
|
|
} else {
|
|
|
- if(applyInfo.getSectionVal() < 1 && applyInfo.getAmtGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
+ if(applyInfo.getAmtSectionVal() < 1 && applyInfo.getAmtGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
applyInfo.setApplyAmtSectionYn("N");
|
|
|
}
|
|
|
}
|
|
|
@@ -362,65 +372,83 @@ public class TsfCartService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 수량 다다익선에 맞춰 정렬
|
|
|
+ Collections.sort((ArrayList<Order>) tmtbApplyList, new Comparator<Order>() {
|
|
|
+ @Override
|
|
|
+ public int compare(Order c1, Order c2) {
|
|
|
+ return c1.getQtyTmtbSq() - c2.getQtyTmtbSq();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 수량 다다익선 적용 상품 할인 금액 계산
|
|
|
int leftAmt = 0;
|
|
|
int i = 0;
|
|
|
+
|
|
|
for(Order resultAmt : tmtbApplyList) {
|
|
|
- if("Y".equals(resultAmt.getApplyQtySectionYn())) {
|
|
|
- if (TscConstants.DcWay.AMT.value().equals(resultAmt.getDcWay())) { // 할인 방식 금액일경우
|
|
|
+ if("Y".equals(resultAmt.getApplyQtySectionYn()) && resultAmt.getQtyTmtbSq() > 0) {
|
|
|
+ if (TscConstants.DcWay.AMT.value().equals(resultAmt.getQtyDcWay())) { // 할인 방식 금액일경우
|
|
|
i++;
|
|
|
int tempAmt = resultAmt.getCurrPrice();
|
|
|
+
|
|
|
if (i == 1) {
|
|
|
- leftAmt = resultAmt.getDcVal();
|
|
|
+ leftAmt = resultAmt.getQtyDcVal();
|
|
|
}
|
|
|
|
|
|
- if (i == resultAmt.getTmtbCnt()) {
|
|
|
+ if (i == resultAmt.getQtyTmtbCnt()) {
|
|
|
resultAmt.setTmtbDcAmt(tempAmt - leftAmt);
|
|
|
leftAmt = 0;
|
|
|
i = 0;
|
|
|
} else {
|
|
|
- double tempDcAmt = resultAmt.getDcVal() * ((tempAmt) / (double)resultAmt.getTmtbSumAmt());
|
|
|
+ double tempDcAmt = resultAmt.getQtyDcVal() * ((tempAmt) / (double)resultAmt.getQtyTmtbSumAmt());
|
|
|
leftAmt -= (int)tempDcAmt;
|
|
|
resultAmt.setTmtbDcAmt(tempAmt - (int)tempDcAmt);
|
|
|
}
|
|
|
} else { // 할인 방식 할인율일 경우
|
|
|
int tempAmt = resultAmt.getCurrPrice();
|
|
|
- tempAmt = (int) (tempAmt - (tempAmt * (resultAmt.getDcVal() / 100.0)));
|
|
|
+ tempAmt = (int) (tempAmt - (tempAmt * (resultAmt.getQtyDcVal() / 100.0)));
|
|
|
resultAmt.setTmtbDcAmt(tempAmt);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(resultAmt.getTmtbDcAmt() > 0) {
|
|
|
resultAmt.setCurrPrice(resultAmt.getTmtbDcAmt());
|
|
|
- } else {
|
|
|
- resultAmt.setCurrPrice(resultAmt.getCurrPrice());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 금액 다다익선에 맞춰 정렬
|
|
|
+ Collections.sort((ArrayList<Order>) tmtbApplyList, new Comparator<Order>() {
|
|
|
+ @Override
|
|
|
+ public int compare(Order c1, Order c2) {
|
|
|
+ return c1.getAmtTmtbSq() - c2.getAmtTmtbSq();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
// 금액 다다익선 할인 계산
|
|
|
leftAmt = 0;
|
|
|
i = 0;
|
|
|
for(Order resultAmt : tmtbApplyList) {
|
|
|
- if("Y".equals(resultAmt.getApplyAmtSectionYn())) {
|
|
|
- if (TscConstants.DcWay.AMT.value().equals(resultAmt.getDcWay())) { // 할인 방식 금액일경우
|
|
|
+ if("Y".equals(resultAmt.getApplyAmtSectionYn()) && resultAmt.getAmtTmtbSq() > 0) {
|
|
|
+ if (TscConstants.DcWay.AMT.value().equals(resultAmt.getAmtDcWay())) { // 할인 방식 금액일경우
|
|
|
i++;
|
|
|
int tempAmt = resultAmt.getCurrPrice();
|
|
|
if (i == 1) {
|
|
|
- leftAmt = resultAmt.getDcVal();
|
|
|
+ leftAmt = resultAmt.getAmtDcVal();
|
|
|
}
|
|
|
|
|
|
- if (i == resultAmt.getTmtbCnt()) {
|
|
|
+ if (i == resultAmt.getAmtTmtbCnt()) {
|
|
|
resultAmt.setTmtbDcAmt(tempAmt - leftAmt);
|
|
|
leftAmt = 0;
|
|
|
i = 0;
|
|
|
} else {
|
|
|
- double tempDcAmt = resultAmt.getDcVal() * ((tempAmt) / (double)resultAmt.getTmtbSumAmt());
|
|
|
+ double tempDcAmt = resultAmt.getAmtDcVal() * ((tempAmt) / (double)resultAmt.getAmtTmtbSumAmt());
|
|
|
leftAmt -= (int)tempDcAmt;
|
|
|
resultAmt.setTmtbDcAmt(tempAmt - (int)tempDcAmt);
|
|
|
}
|
|
|
} else { // 할인 방식 할인율일 경우
|
|
|
int tempAmt = resultAmt.getCurrPrice();
|
|
|
- tempAmt = (int) (tempAmt - (tempAmt * (resultAmt.getDcVal() / 100.0)));
|
|
|
+ tempAmt = (int) (tempAmt - (tempAmt * (resultAmt.getAmtDcVal() / 100.0)));
|
|
|
resultAmt.setTmtbDcAmt(tempAmt);
|
|
|
}
|
|
|
}
|
|
|
@@ -435,8 +463,8 @@ public class TsfCartService {
|
|
|
cart.setQtyTmtbNm(apply.getQtyTmtbNm());
|
|
|
cart.setQtyTmtbSq(apply.getQtyTmtbSq());
|
|
|
cart.setApplyAmtSectionYn(apply.getApplyAmtSectionYn());
|
|
|
- cart.setAmtTmtbNm(apply.getTmtbNm());
|
|
|
- cart.setAmtTmtbSq(apply.getTmtbSq());
|
|
|
+ cart.setAmtTmtbNm(apply.getAmtTmtbNm());
|
|
|
+ cart.setAmtTmtbSq(apply.getAmtTmtbSq());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -473,9 +501,6 @@ public class TsfCartService {
|
|
|
order.setItemQtyArr(arr3);
|
|
|
}
|
|
|
|
|
|
- // 1.2 즉시할인 적용가 * 주문수량(장바구니수량)
|
|
|
- order.setCurrPrice(order.getCurrPrice() * order.getGoodsQty());
|
|
|
-
|
|
|
// 1.3 배송정책별 상품 구분
|
|
|
if (order.getDelvFeeCd().equals("WMS")) {
|
|
|
wmsCartList.add(order);
|
|
|
@@ -511,7 +536,7 @@ public class TsfCartService {
|
|
|
if(param.getDelvFeeCd().equals(delv.getDelvFeeCd())) {
|
|
|
compCnt++;
|
|
|
if("N".equals(param.getSoldoutYn())) {
|
|
|
- delv.setCompSumPrice(delv.getCompSumPrice() + (param.getCurrPrice() * param.getGoodsQty()));
|
|
|
+ delv.setCompSumPrice(delv.getCompSumPrice() + param.getCurrPrice());
|
|
|
}
|
|
|
|
|
|
if(compCnt == 1) {
|
|
|
@@ -544,9 +569,9 @@ public class TsfCartService {
|
|
|
int wmsSumPrice = 0;
|
|
|
compCnt = 0;
|
|
|
for(Order param : params) {
|
|
|
- compCnt++;
|
|
|
if("WMS".equals(param.getDelvFeeCd())) {
|
|
|
- wmsSumPrice = wmsSumPrice + (param.getCurrPrice() * param.getGoodsQty());
|
|
|
+ compCnt++;
|
|
|
+ wmsSumPrice = wmsSumPrice + param.getCurrPrice();
|
|
|
if(compCnt == 1) {
|
|
|
param.setFirstCompYn("Y");
|
|
|
}
|
|
|
@@ -568,18 +593,13 @@ public class TsfCartService {
|
|
|
public void setCartListTotAmtInfo(Collection<Order> cartGoodsList, Order order) {
|
|
|
// 장바구니 합계 금액 계산
|
|
|
int notSoldoutCnt = 0;
|
|
|
+
|
|
|
for(Order cart : cartGoodsList) {
|
|
|
if("N".equals(cart.getSoldoutYn())) {
|
|
|
notSoldoutCnt++;
|
|
|
// 상품 금액 합계
|
|
|
order.setSumOrdAmt(order.getSumOrdAmt() + cart.getCurrPrice());
|
|
|
-
|
|
|
- // 할인 제외 금액 총계
|
|
|
- if(cart.getTmtbDcAmt() == 0) {
|
|
|
- order.setSumRealPayAmt(order.getSumRealPayAmt() + cart.getCurrPrice());
|
|
|
- } else {
|
|
|
- order.setSumRealPayAmt(order.getSumRealPayAmt() + cart.getTmtbDcAmt());
|
|
|
- }
|
|
|
+ order.setSumRealPayAmt(order.getSumRealPayAmt() + cart.getTmtbDcAmt());
|
|
|
|
|
|
// 배송비 합계
|
|
|
if("Y".equals(cart.getFirstCompYn())) {
|
|
|
@@ -594,4 +614,8 @@ public class TsfCartService {
|
|
|
// 장바구니 총액 계산 상품 총 수량
|
|
|
order.setTotCartCnt(notSoldoutCnt);
|
|
|
}
|
|
|
+
|
|
|
+ public void deleteCart(Cart param) {
|
|
|
+ cartDao.deleteCart(param);
|
|
|
+ }
|
|
|
}
|