|
@@ -993,6 +993,7 @@ public class TscOrderService {
|
|
|
|
|
|
|
|
GagaMap resultMap = new GagaMap();
|
|
GagaMap resultMap = new GagaMap();
|
|
|
|
|
|
|
|
|
|
+ int listSumAmt = 0;
|
|
|
int orgGoodsSumAmt = 0;
|
|
int orgGoodsSumAmt = 0;
|
|
|
int currGoodsSumAmt = 0;
|
|
int currGoodsSumAmt = 0;
|
|
|
int tmtbDcSumAmt = 0;
|
|
int tmtbDcSumAmt = 0;
|
|
@@ -1002,6 +1003,7 @@ public class TscOrderService {
|
|
|
|
|
|
|
|
// 상품금액, 배송비, 할인금액, 다다익선할인금액, 쿠폰할인금액, 선포인트사용, 포인트사용, 상품권사용
|
|
// 상품금액, 배송비, 할인금액, 다다익선할인금액, 쿠폰할인금액, 선포인트사용, 포인트사용, 상품권사용
|
|
|
for (Order tmtbGoodsApply : tmtbGoodsApplyList) {
|
|
for (Order tmtbGoodsApply : tmtbGoodsApplyList) {
|
|
|
|
|
+ listSumAmt = listSumAmt + ((tmtbGoodsApply.getListPrice() + tmtbGoodsApply.getOptAddPrice()) * tmtbGoodsApply.getGoodsQty()); // 상품가(정상가)
|
|
|
orgGoodsSumAmt = orgGoodsSumAmt + ((tmtbGoodsApply.getOrgCurrPrice() + tmtbGoodsApply.getOptAddPrice()) * tmtbGoodsApply.getGoodsQty()); // 상품가
|
|
orgGoodsSumAmt = orgGoodsSumAmt + ((tmtbGoodsApply.getOrgCurrPrice() + tmtbGoodsApply.getOptAddPrice()) * tmtbGoodsApply.getGoodsQty()); // 상품가
|
|
|
currGoodsSumAmt = currGoodsSumAmt + ((tmtbGoodsApply.getCurrPrice() + tmtbGoodsApply.getOptAddPrice()) * tmtbGoodsApply.getGoodsQty()); // 즉시할인상품가
|
|
currGoodsSumAmt = currGoodsSumAmt + ((tmtbGoodsApply.getCurrPrice() + tmtbGoodsApply.getOptAddPrice()) * tmtbGoodsApply.getGoodsQty()); // 즉시할인상품가
|
|
|
savePntSumAmt = savePntSumAmt + tmtbGoodsApply.getSavePntAmt(); // 적립에정포인트
|
|
savePntSumAmt = savePntSumAmt + tmtbGoodsApply.getSavePntAmt(); // 적립에정포인트
|
|
@@ -1015,8 +1017,10 @@ public class TscOrderService {
|
|
|
prePntDcAmt = prePntDcAmt + tmtbGoodsApply.getPrePntDcAmt();
|
|
prePntDcAmt = prePntDcAmt + tmtbGoodsApply.getPrePntDcAmt();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- cpn1DcSumAmt = cpn1DcSumAmt + (orgGoodsSumAmt - currGoodsSumAmt); // 즉시할인금액
|
|
|
|
|
-
|
|
|
|
|
|
|
+ cpn1DcSumAmt = listSumAmt - currGoodsSumAmt; // 즉시할인금액
|
|
|
|
|
+ //cpn1DcSumAmt = listSumAmt - tmtbDcSumAmt; // 즉시할인금액
|
|
|
|
|
+
|
|
|
|
|
+ resultMap.set("listSumAmt" , listSumAmt);
|
|
|
resultMap.set("orgGoodsSumAmt" , orgGoodsSumAmt);
|
|
resultMap.set("orgGoodsSumAmt" , orgGoodsSumAmt);
|
|
|
resultMap.set("cpn1DcSumAmt" , cpn1DcSumAmt);
|
|
resultMap.set("cpn1DcSumAmt" , cpn1DcSumAmt);
|
|
|
resultMap.set("tmtbDcSumAmt" , tmtbDcSumAmt);
|
|
resultMap.set("tmtbDcSumAmt" , tmtbDcSumAmt);
|
|
@@ -1483,6 +1487,12 @@ public class TscOrderService {
|
|
|
orderDao.createOrdFreegiftDtl(order);
|
|
orderDao.createOrdFreegiftDtl(order);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 8. 2021.04.25 보증보험신청정보등록 (무통장결제, 실시간계좌이체)
|
|
|
|
|
+ if (TscConstants.PayMeans.ACCOUNT_TRANSFER.value().equals(order.getPayMeans()) || TscConstants.PayMeans.BANK_DEPOSIT.value().equals(order.getPayMeans())) {
|
|
|
|
|
+ if ("Y".equals(order.getInsuranceYn())) {
|
|
|
|
|
+ orderDao.createInsurance(order);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1753,7 +1763,8 @@ public class TscOrderService {
|
|
|
|
|
|
|
|
// 3. 상품정보조회
|
|
// 3. 상품정보조회
|
|
|
Collection<Order> orderDetailList = orderDao.getOrderDetailOrdAmtList(order);
|
|
Collection<Order> orderDetailList = orderDao.getOrderDetailOrdAmtList(order);
|
|
|
- int goodsSumAmt = 0; // 상품금액합계
|
|
|
|
|
|
|
+ int listSumAmt = 0; // 상품금액합계(정상가)
|
|
|
|
|
+ int goodsSumAmt = 0; // 상품금액합계(판매가)
|
|
|
int delvFeeSumAmt = 0; // 배송비합계
|
|
int delvFeeSumAmt = 0; // 배송비합계
|
|
|
int cpn1DcSumAmt = 0; // 즉시할인합계
|
|
int cpn1DcSumAmt = 0; // 즉시할인합계
|
|
|
int tmtbSumAmt = 0; // 다다익선합계
|
|
int tmtbSumAmt = 0; // 다다익선합계
|
|
@@ -1770,6 +1781,7 @@ public class TscOrderService {
|
|
|
String giftPackYn = "N"; // 선물여부
|
|
String giftPackYn = "N"; // 선물여부
|
|
|
|
|
|
|
|
for (Order orderDetail : orderDetailList) {
|
|
for (Order orderDetail : orderDetailList) {
|
|
|
|
|
+ listSumAmt = listSumAmt + ((orderDetail.getListPrice() + orderDetail.getOptAddPrice()) * orderDetail.getOrdQty());
|
|
|
goodsSumAmt = goodsSumAmt + ((orderDetail.getCurrPrice() + orderDetail.getOptAddPrice()) * orderDetail.getOrdQty());
|
|
goodsSumAmt = goodsSumAmt + ((orderDetail.getCurrPrice() + orderDetail.getOptAddPrice()) * orderDetail.getOrdQty());
|
|
|
cpn1DcSumAmt = cpn1DcSumAmt + orderDetail.getCpn1DcAmt();
|
|
cpn1DcSumAmt = cpn1DcSumAmt + orderDetail.getCpn1DcAmt();
|
|
|
tmtbSumAmt = tmtbSumAmt + (orderDetail.getTmtb1DcAmt() + orderDetail.getTmtb2DcAmt());
|
|
tmtbSumAmt = tmtbSumAmt + (orderDetail.getTmtb1DcAmt() + orderDetail.getTmtb2DcAmt());
|
|
@@ -1789,6 +1801,9 @@ public class TscOrderService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 2021.04.25 금액표기수정
|
|
|
|
|
+ cpn1DcSumAmt = listSumAmt - goodsSumAmt - cpn1DcSumAmt;
|
|
|
|
|
+
|
|
|
// 선물여부
|
|
// 선물여부
|
|
|
order.setGiftPackYn(giftPackYn);
|
|
order.setGiftPackYn(giftPackYn);
|
|
|
|
|
|
|
@@ -1844,7 +1859,8 @@ public class TscOrderService {
|
|
|
resultMap.set("ordSumAmt" , ordSumAmt); // 주문금액합계
|
|
resultMap.set("ordSumAmt" , ordSumAmt); // 주문금액합계
|
|
|
resultMap.set("dcSumAmt" , dcSumAmt); // 할인금액합계
|
|
resultMap.set("dcSumAmt" , dcSumAmt); // 할인금액합계
|
|
|
resultMap.set("realOrdSumAmt" , realOrdSumAmt); // 결제금액합계
|
|
resultMap.set("realOrdSumAmt" , realOrdSumAmt); // 결제금액합계
|
|
|
- resultMap.set("goodsSumAmt" , goodsSumAmt); // 상품금액합계
|
|
|
|
|
|
|
+ resultMap.set("listSumAmt" , listSumAmt); // 상품금액합계(정상가)
|
|
|
|
|
+ resultMap.set("goodsSumAmt" , goodsSumAmt); // 상품금액합계(판매가)
|
|
|
resultMap.set("delvFeeSumAmt" , delvFeeSumAmt); // 배송비합계
|
|
resultMap.set("delvFeeSumAmt" , delvFeeSumAmt); // 배송비합계
|
|
|
resultMap.set("cpn1DcSumAmt" , cpn1DcSumAmt); // 즉시할인합계
|
|
resultMap.set("cpn1DcSumAmt" , cpn1DcSumAmt); // 즉시할인합계
|
|
|
resultMap.set("tmtbSumAmt" , tmtbSumAmt); // 다다익선합계
|
|
resultMap.set("tmtbSumAmt" , tmtbSumAmt); // 다다익선합계
|