일반주문 할인 및 배송비 계산 수정(1)

This commit is contained in:
김현욱
2026-03-23 15:35:42 +09:00
parent 9a7386a08c
commit ef4f5f473c
4 changed files with 248 additions and 373 deletions

View File

@@ -3310,9 +3310,11 @@ public class OrdrController {
try {
//계산결과 총결제금액
String resultSetleAmt = "";
String resultWonSetleAmt = "";
//주문요청 총결제금액
//회원/비회원 총결제금액
String reqSetleAmt = StringUtil.isNullToString(setle.get("rlSetleAmt"));
String reqWonSetleAmt = StringUtil.isNullToString(setle.get("wonRlSetleAmt"));
//재계산된 총결제금액관련정보
Map<String, Object> resultAmt;
if(isSubsvc) {
@@ -3326,6 +3328,9 @@ public class OrdrController {
if(setleExpectAmt.containsKey("setleAmt")){
resultSetleAmt = StringUtil.isNullToString(setleExpectAmt.get("setleAmt"));
}
if(setleExpectAmt.containsKey("setleAmtKr")){
resultWonSetleAmt = StringUtil.isNullToString(setleExpectAmt.get("setleAmtKr"));
}
//주문요청의 총결제금액과 계산된 총결제금액이 서로 다를 경우
if(!resultSetleAmt.equals(reqSetleAmt)
@@ -3334,6 +3339,13 @@ public class OrdrController {
content.put("result", "Y");
content.put("message", PurchsValidCode.purchsValidMsg("setleAmt"));
}
if(!resultWonSetleAmt.equals(reqWonSetleAmt)
&& StringUtils.hasText(reqWonSetleAmt)
&& StringUtils.hasText(resultWonSetleAmt)){
content.put("result", "Y");
content.put("message", PurchsValidCode.purchsValidMsg("setleAmt"));
}
}
} catch (WnbtRestException wre) {
log.error(wre.getMessage());