|
|
@@ -724,17 +724,20 @@ public class TsfCartService {
|
|
|
param.setFrontGb(TsfSession.getFrontGb());
|
|
|
Collection<Order> cartGoodsList = coreOrderService.getCartGoodsList(param);
|
|
|
String cartYn = "N";
|
|
|
+
|
|
|
if (!StringUtils.isEmpty(param.getCartYn())) {
|
|
|
cartYn = param.getCartYn();
|
|
|
}
|
|
|
|
|
|
if (param.getCustNo() > 0 || "Y".equals(cartYn)) {
|
|
|
+
|
|
|
// 장바구니 내 수량 다다익선 적용 가능 리스트 조회 (등록된 기본,적용 상품 정보 전체 조회)
|
|
|
Collection<Order> tmtbApplyList = cartDao.selectMoreBetterApplyCartList(param);
|
|
|
|
|
|
// 장바구니 등록 다다익선 일련번호 지정
|
|
|
List<Integer> applySq = new ArrayList<Integer>();
|
|
|
-
|
|
|
+
|
|
|
+ // 다다익선 적용상품 여부 확인
|
|
|
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())) {
|
|
|
@@ -750,40 +753,44 @@ public class TsfCartService {
|
|
|
// 섹션 정보 조회 후 할인 여부 판단
|
|
|
Collection<Order> tmtbSectionList = cartDao.selectTmtbSectionValList(applySq);
|
|
|
|
|
|
- for (Order applyInfo : tmtbApplyList) { // 기준 상품 및 다다익선 정보 조회
|
|
|
+ for (Order applyInfo : tmtbApplyList) { // 기준 상품 및 다다익선 정보 조회
|
|
|
// 다다익선 할인 조건 조회
|
|
|
for (Order section : tmtbSectionList) {
|
|
|
- if (applyInfo.getQtyTmtbSq() == section.getTmtbSq()) {
|
|
|
- // 수량 적용 다다익선
|
|
|
- if (section.getSectionVal() <= applyInfo.getQtyTmtbSumQty()) { // 장바구니 수량 할인 기준 달성시
|
|
|
- if (applyInfo.getQtySectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
- applyInfo.setQtySectionVal(section.getSectionVal());
|
|
|
- applyInfo.setApplyQtySectionYn("Y");
|
|
|
- applyInfo.setQtyDcWay(section.getDcWay());
|
|
|
- applyInfo.setQtyDcVal(section.getDcVal());
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (applyInfo.getQtySectionVal() < 1 && applyInfo.getQtyGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
- applyInfo.setApplyQtySectionYn("N");
|
|
|
+
|
|
|
+ // 2021.11.10 적용상품만 할인 적용
|
|
|
+ //if (TscConstants.GoodsGb.APPLY.value().equals(applyInfo.getQtyGoodsGb()) || TscConstants.GoodsGb.APPLY.value().equals(applyInfo.getAmtGoodsGb())) {
|
|
|
+ if (applyInfo.getQtyTmtbSq() == section.getTmtbSq()) {
|
|
|
+ // 수량 적용 다다익선
|
|
|
+ if (section.getSectionVal() <= applyInfo.getQtyTmtbSumQty()) { // 장바구니 수량 할인 기준 달성시
|
|
|
+ if (applyInfo.getQtySectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
+ applyInfo.setQtySectionVal(section.getSectionVal());
|
|
|
+ applyInfo.setApplyQtySectionYn("Y");
|
|
|
+ applyInfo.setQtyDcWay(section.getDcWay());
|
|
|
+ applyInfo.setQtyDcVal(section.getDcVal());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (applyInfo.getQtySectionVal() < 1 && applyInfo.getQtyGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
+ applyInfo.setApplyQtySectionYn("N");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- if (applyInfo.getAmtTmtbSq() == section.getTmtbSq()) {
|
|
|
- // 금액 적용 다다익선
|
|
|
- if (section.getSectionVal() <= applyInfo.getAmtTmtbSumAmt()) { // 장바구니 수량 할인 기준 달성시
|
|
|
- if (applyInfo.getAmtSectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
- applyInfo.setAmtSectionVal(section.getSectionVal());
|
|
|
- applyInfo.setApplyAmtSectionYn("Y");
|
|
|
- applyInfo.setAmtDcWay(section.getDcWay());
|
|
|
- applyInfo.setAmtDcVal(section.getDcVal());
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (applyInfo.getAmtSectionVal() < 1 && applyInfo.getAmtGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
- applyInfo.setApplyAmtSectionYn("N");
|
|
|
+
|
|
|
+ if (applyInfo.getAmtTmtbSq() == section.getTmtbSq()) {
|
|
|
+ // 금액 적용 다다익선
|
|
|
+ if (section.getSectionVal() <= applyInfo.getAmtTmtbSumAmt()) { // 장바구니 수량 할인 기준 달성시
|
|
|
+ if (applyInfo.getAmtSectionVal() <= section.getSectionVal()) { // 기존 달성된 기준치보다 할인폭이 클 경우 기준할인 수정
|
|
|
+ applyInfo.setAmtSectionVal(section.getSectionVal());
|
|
|
+ applyInfo.setApplyAmtSectionYn("Y");
|
|
|
+ applyInfo.setAmtDcWay(section.getDcWay());
|
|
|
+ applyInfo.setAmtDcVal(section.getDcVal());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (applyInfo.getAmtSectionVal() < 1 && applyInfo.getAmtGoodsGb().equals(TscConstants.GoodsGb.BASE.value())) {
|
|
|
+ applyInfo.setApplyAmtSectionYn("N");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -801,40 +808,44 @@ public class TsfCartService {
|
|
|
|
|
|
for (Order resultAmt : tmtbApplyList) {
|
|
|
int tempAmt = 0;
|
|
|
-
|
|
|
- if ("Y".equals(resultAmt.getApplyQtySectionYn()) && resultAmt.getQtyTmtbSq() > 0) {
|
|
|
- if (TscConstants.DcWay.AMT.value().equals(resultAmt.getQtyDcWay())) { // 할인 방식 금액일경우
|
|
|
- i++;
|
|
|
- tempAmt = resultAmt.getCurrPrice();
|
|
|
-
|
|
|
- if (i == 1) {
|
|
|
- leftAmt = resultAmt.getQtyDcVal();
|
|
|
- }
|
|
|
-
|
|
|
- if (i == resultAmt.getQtyTmtbCnt()) {
|
|
|
- resultAmt.setTmtbDcAmt(tempAmt - leftAmt);
|
|
|
- resultAmt.setTmtb1DcAmt(leftAmt); // tmtb1 할인금액
|
|
|
- leftAmt = 0;
|
|
|
- i = 0;
|
|
|
- } else {
|
|
|
- double tempDcAmt = resultAmt.getQtyDcVal() * ((tempAmt) / (double)resultAmt.getQtyTmtbSumAmt());
|
|
|
- leftAmt -= (int)tempDcAmt;
|
|
|
- resultAmt.setTmtbDcAmt(tempAmt - (int)tempDcAmt);
|
|
|
-
|
|
|
- resultAmt.setTmtb1DcAmt((int)tempDcAmt); // tmtb1 할인금액
|
|
|
+
|
|
|
+ // 2021.11.10 적용상품만 할인 적용
|
|
|
+ if (TscConstants.GoodsGb.APPLY.value().equals(resultAmt.getQtyGoodsGb()) || TscConstants.GoodsGb.APPLY.value().equals(resultAmt.getAmtGoodsGb())) {
|
|
|
+
|
|
|
+ if ("Y".equals(resultAmt.getApplyQtySectionYn()) && resultAmt.getQtyTmtbSq() > 0) {
|
|
|
+ if (TscConstants.DcWay.AMT.value().equals(resultAmt.getQtyDcWay())) { // 할인 방식 금액일경우
|
|
|
+ i++;
|
|
|
+ tempAmt = resultAmt.getCurrPrice();
|
|
|
+
|
|
|
+ if (i == 1) {
|
|
|
+ leftAmt = resultAmt.getQtyDcVal();
|
|
|
+ }
|
|
|
+
|
|
|
+ if (i == resultAmt.getQtyTmtbCnt()) {
|
|
|
+ resultAmt.setTmtbDcAmt(tempAmt - leftAmt);
|
|
|
+ resultAmt.setTmtb1DcAmt(leftAmt); // tmtb1 할인금액
|
|
|
+ leftAmt = 0;
|
|
|
+ i = 0;
|
|
|
+ } else {
|
|
|
+ double tempDcAmt = resultAmt.getQtyDcVal() * ((tempAmt) / (double)resultAmt.getQtyTmtbSumAmt());
|
|
|
+ leftAmt -= (int)tempDcAmt;
|
|
|
+ resultAmt.setTmtbDcAmt(tempAmt - (int)tempDcAmt);
|
|
|
+
|
|
|
+ resultAmt.setTmtb1DcAmt((int)tempDcAmt); // tmtb1 할인금액
|
|
|
+ }
|
|
|
+ } else { // 할인 방식 할인율일 경우
|
|
|
+ tempAmt = resultAmt.getCurrPrice();
|
|
|
+ tempAmt = (tempAmt - (int)(tempAmt * (resultAmt.getQtyDcVal() / 100.0)));
|
|
|
+ resultAmt.setTmtbDcAmt(tempAmt);
|
|
|
+
|
|
|
+ // 2021.04.29 다다익선할인금액수정
|
|
|
+ resultAmt.setTmtb1DcAmt((int)(resultAmt.getCurrPrice() * (resultAmt.getQtyDcVal() / 100.0))); // tmtb1 할인금액
|
|
|
}
|
|
|
- } else { // 할인 방식 할인율일 경우
|
|
|
- tempAmt = resultAmt.getCurrPrice();
|
|
|
- tempAmt = (tempAmt - (int)(tempAmt * (resultAmt.getQtyDcVal() / 100.0)));
|
|
|
- resultAmt.setTmtbDcAmt(tempAmt);
|
|
|
-
|
|
|
- // 2021.04.29 다다익선할인금액수정
|
|
|
- resultAmt.setTmtb1DcAmt((int)(resultAmt.getCurrPrice() * (resultAmt.getQtyDcVal() / 100.0))); // tmtb1 할인금액
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- if (resultAmt.getTmtbDcAmt() > 0) {
|
|
|
- resultAmt.setCurrPrice(resultAmt.getTmtbDcAmt());
|
|
|
+
|
|
|
+ if (resultAmt.getTmtbDcAmt() > 0) {
|
|
|
+ resultAmt.setCurrPrice(resultAmt.getTmtbDcAmt());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -847,63 +858,168 @@ public class TsfCartService {
|
|
|
});
|
|
|
|
|
|
// 금액 다다익선 할인 계산
|
|
|
- leftAmt = 0;
|
|
|
- i = 0;
|
|
|
+ leftAmt = 0;
|
|
|
+ i = 0;
|
|
|
+
|
|
|
for (Order resultAmt : tmtbApplyList) {
|
|
|
int tempAmt = 0;
|
|
|
-
|
|
|
- if ("Y".equals(resultAmt.getApplyAmtSectionYn()) && resultAmt.getAmtTmtbSq() > 0) {
|
|
|
- if (TscConstants.DcWay.AMT.value().equals(resultAmt.getAmtDcWay())) { // 할인 방식 금액일경우
|
|
|
- i++;
|
|
|
- tempAmt = resultAmt.getCurrPrice();
|
|
|
- if (i == 1) {
|
|
|
- leftAmt = resultAmt.getAmtDcVal();
|
|
|
- }
|
|
|
-
|
|
|
- if (i == resultAmt.getAmtTmtbCnt()) {
|
|
|
- resultAmt.setTmtbDcAmt(tempAmt - leftAmt);
|
|
|
- resultAmt.setTmtb2DcAmt(leftAmt); // tmtb1 할인금액
|
|
|
-
|
|
|
- leftAmt = 0;
|
|
|
- i = 0;
|
|
|
- } else {
|
|
|
- double tempDcAmt = resultAmt.getAmtDcVal() * ((tempAmt) / (double)resultAmt.getAmtTmtbSumAmt());
|
|
|
- leftAmt -= (int)tempDcAmt;
|
|
|
- resultAmt.setTmtbDcAmt(tempAmt - (int)tempDcAmt);
|
|
|
-
|
|
|
- resultAmt.setTmtb2DcAmt((int)tempDcAmt); // tmtb1 할인금액
|
|
|
+
|
|
|
+ // 2021.11.10 적용상품만 할인 적용
|
|
|
+ if (TscConstants.GoodsGb.APPLY.value().equals(resultAmt.getQtyGoodsGb()) || TscConstants.GoodsGb.APPLY.value().equals(resultAmt.getAmtGoodsGb())) {
|
|
|
+ if ("Y".equals(resultAmt.getApplyAmtSectionYn()) && resultAmt.getAmtTmtbSq() > 0) {
|
|
|
+ // 할인 방식 금액일경우
|
|
|
+ if (TscConstants.DcWay.AMT.value().equals(resultAmt.getAmtDcWay())) {
|
|
|
+ i++;
|
|
|
+ tempAmt = resultAmt.getCurrPrice();
|
|
|
+
|
|
|
+ if (i == 1) {
|
|
|
+ leftAmt = resultAmt.getAmtDcVal();
|
|
|
+ }
|
|
|
+
|
|
|
+ if (i == resultAmt.getAmtTmtbCnt()) {
|
|
|
+ resultAmt.setTmtbDcAmt(tempAmt - leftAmt);
|
|
|
+ resultAmt.setTmtb2DcAmt(leftAmt); // tmtb1 할인금액
|
|
|
+
|
|
|
+ leftAmt = 0;
|
|
|
+ i = 0;
|
|
|
+ } else {
|
|
|
+ double tempDcAmt = resultAmt.getAmtDcVal() * ((tempAmt) / (double)resultAmt.getAmtTmtbSumAmt());
|
|
|
+ leftAmt -= (int)tempDcAmt;
|
|
|
+ resultAmt.setTmtbDcAmt(tempAmt - (int)tempDcAmt);
|
|
|
+
|
|
|
+ resultAmt.setTmtb2DcAmt((int)tempDcAmt); // tmtb1 할인금액
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 할인 방식 할인율일 경우
|
|
|
+ else {
|
|
|
+ tempAmt = resultAmt.getCurrPrice();
|
|
|
+ tempAmt = (tempAmt - (int)(tempAmt * (resultAmt.getAmtDcVal() / 100.0)));
|
|
|
+ resultAmt.setTmtbDcAmt(tempAmt);
|
|
|
+
|
|
|
+ // 2021.04.29 다다익선할인금액수정
|
|
|
+ resultAmt.setTmtb2DcAmt((int)(resultAmt.getCurrPrice() * (resultAmt.getAmtDcVal() / 100.0))); // tmtb2 할인금액
|
|
|
}
|
|
|
- } else { // 할인 방식 할인율일 경우
|
|
|
- tempAmt = resultAmt.getCurrPrice();
|
|
|
- tempAmt = (tempAmt - (int)(tempAmt * (resultAmt.getAmtDcVal() / 100.0)));
|
|
|
- resultAmt.setTmtbDcAmt(tempAmt);
|
|
|
-
|
|
|
- // 2021.04.29 다다익선할인금액수정
|
|
|
- resultAmt.setTmtb2DcAmt((int)(resultAmt.getCurrPrice() * (resultAmt.getAmtDcVal() / 100.0))); // tmtb2 할인금액
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ //
|
|
|
+ List<Order> tmtbSqList = new ArrayList<Order>();
|
|
|
+ List<Order> applyCartList = new ArrayList<Order>();
|
|
|
+
|
|
|
// 장바구니 정보에 수량 다다익선 정보 입력
|
|
|
for (Order cart : cartGoodsList) {
|
|
|
for (Order apply : tmtbApplyList) {
|
|
|
- if (cart.getCartSq().equals(apply.getCartSq())) {
|
|
|
- // 2021.02.24 jsh77b
|
|
|
- cart.setTmtb1DcAmt(apply.getTmtb1DcAmt());
|
|
|
- cart.setTmtb2DcAmt(apply.getTmtb2DcAmt());
|
|
|
-
|
|
|
- cart.setTmtbDcAmt(apply.getTmtbDcAmt());
|
|
|
-
|
|
|
- log.info("cart.getTmtb1DcAmt() ::: {}", cart.getTmtb1DcAmt());
|
|
|
- log.info("cart.getTmtb2DcAmt() ::: {}", cart.getTmtb2DcAmt());
|
|
|
- log.info("cart.getTmtbDcAmt() ::: {}", cart.getTmtbDcAmt());
|
|
|
-
|
|
|
- cart.setApplyQtySectionYn(apply.getApplyQtySectionYn());
|
|
|
- cart.setQtyTmtbNm(apply.getQtyTmtbNm());
|
|
|
- cart.setQtyTmtbSq(apply.getQtyTmtbSq());
|
|
|
- cart.setApplyAmtSectionYn(apply.getApplyAmtSectionYn());
|
|
|
- cart.setAmtTmtbNm(apply.getAmtTmtbNm());
|
|
|
- cart.setAmtTmtbSq(apply.getAmtTmtbSq());
|
|
|
+
|
|
|
+ // 2021.11.10 적용상품만 할인 적용
|
|
|
+ if (TscConstants.GoodsGb.APPLY.value().equals(apply.getQtyGoodsGb()) || TscConstants.GoodsGb.APPLY.value().equals(apply.getAmtGoodsGb())) {
|
|
|
+ if (cart.getCartSq().equals(apply.getCartSq())) {
|
|
|
+ // 2021.02.24 jsh77b
|
|
|
+ cart.setTmtb1DcAmt(apply.getTmtb1DcAmt());
|
|
|
+ cart.setTmtb2DcAmt(apply.getTmtb2DcAmt());
|
|
|
+ cart.setTmtbDcAmt(apply.getTmtbDcAmt());
|
|
|
+
|
|
|
+ // 2021.11.11 추가
|
|
|
+ if ("Y".equals(apply.getApplyQtySectionYn())) {
|
|
|
+ cart.setApplyQtySectionYn(apply.getApplyQtySectionYn());
|
|
|
+ cart.setQtyTmtbNm(apply.getQtyTmtbNm());
|
|
|
+ cart.setQtyTmtbSq(apply.getQtyTmtbSq());
|
|
|
+
|
|
|
+ tmtbSqList.add(cart);
|
|
|
+ applyCartList.add(cart);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 2021.11.11 추가
|
|
|
+ if ("Y".equals(apply.getApplyAmtSectionYn())) {
|
|
|
+ cart.setApplyAmtSectionYn(apply.getApplyAmtSectionYn());
|
|
|
+ cart.setAmtTmtbNm(apply.getAmtTmtbNm());
|
|
|
+ cart.setAmtTmtbSq(apply.getAmtTmtbSq());
|
|
|
+
|
|
|
+ tmtbSqList.add(cart);
|
|
|
+ applyCartList.add(cart);
|
|
|
+ }
|
|
|
+
|
|
|
+ cart.setQtyGoodsGb(apply.getQtyGoodsGb());
|
|
|
+ cart.setAmtGoodsGb(apply.getAmtGoodsGb());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (TscConstants.GoodsGb.BASE.value().equals(apply.getQtyGoodsGb()) || TscConstants.GoodsGb.BASE.value().equals(apply.getAmtGoodsGb())) {
|
|
|
+
|
|
|
+ // 2022.01.05 적용상품에 있으면 기본상품이 적용되는 정보를 적용하지 않음
|
|
|
+ Boolean temp1 = true;
|
|
|
+ Boolean temp2 = true;
|
|
|
+
|
|
|
+ for (Order applyTemp : tmtbApplyList) {
|
|
|
+ if (TscConstants.GoodsGb.APPLY.value().equals(applyTemp.getQtyGoodsGb()) || TscConstants.GoodsGb.APPLY.value().equals(applyTemp.getAmtGoodsGb())) {
|
|
|
+ if (apply.getCartSq().equals(applyTemp.getCartSq())) {
|
|
|
+
|
|
|
+ // 2021.11.11 추가
|
|
|
+ if ("Y".equals(applyTemp.getApplyQtySectionYn())) {
|
|
|
+ temp1 = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 2021.11.11 추가
|
|
|
+ if ("Y".equals(applyTemp.getApplyAmtSectionYn())) {
|
|
|
+ temp2 = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (cart.getCartSq().equals(apply.getCartSq())) {
|
|
|
+
|
|
|
+ // 수량 기본상품의 정보만 유일하게 존재
|
|
|
+ if (temp1) {
|
|
|
+ // 2021.02.24 jsh77b
|
|
|
+ if ("N".equals(apply.getApplyQtySectionYn())) {
|
|
|
+ cart.setApplyQtySectionYn(apply.getApplyQtySectionYn());
|
|
|
+ cart.setQtyTmtbNm(apply.getQtyTmtbNm());
|
|
|
+ cart.setQtyTmtbSq(apply.getQtyTmtbSq());
|
|
|
+ }
|
|
|
+ cart.setQtyGoodsGb(apply.getQtyGoodsGb());
|
|
|
+ }
|
|
|
+
|
|
|
+ // 금액 기본상품의 정보만 유일하게 존재
|
|
|
+ if (temp2) {
|
|
|
+ // 2021.11.11 추가
|
|
|
+ if ("N".equals(apply.getApplyAmtSectionYn())) {
|
|
|
+ cart.setApplyAmtSectionYn(apply.getApplyAmtSectionYn());
|
|
|
+ cart.setAmtTmtbNm(apply.getAmtTmtbNm());
|
|
|
+ cart.setAmtTmtbSq(apply.getAmtTmtbSq());
|
|
|
+ }
|
|
|
+ cart.setAmtGoodsGb(apply.getAmtGoodsGb());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 2021.11.11 다다익선 할인 적용된 상품 상품보기 숨김 처리 로직 추가
|
|
|
+ if (tmtbSqList != null && tmtbSqList.size() > 0) {
|
|
|
+ // 장바구니상품목록수정
|
|
|
+ for (Order cart : cartGoodsList) {
|
|
|
+ // 기본상품일때
|
|
|
+ if (TscConstants.GoodsGb.BASE.value().equals(cart.getQtyGoodsGb()) || TscConstants.GoodsGb.BASE.value().equals(cart.getAmtGoodsGb())) {
|
|
|
+ for (Order tmtbSq : tmtbSqList) {
|
|
|
+ // 다다익선의 적용상품에 없을때 기본상품 적용상품보기 팝업 미노출 처리
|
|
|
+ Boolean temp = true;
|
|
|
+ for (Order applyCart : applyCartList) {
|
|
|
+ if (cart.getCartSq() == applyCart.getCartSq()) {
|
|
|
+ temp = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (temp) {
|
|
|
+ if (cart.getAmtTmtbSq() == tmtbSq.getAmtTmtbSq()) {
|
|
|
+ cart.setApplyAmtSectionYn("");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (cart.getQtyTmtbSq() == tmtbSq.getQtyTmtbSq()) {
|
|
|
+ cart.setApplyQtySectionYn("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|