瀏覽代碼

금액 유효성 체크 오류 수정

jsh77b 4 年之前
父節點
當前提交
27b30059cf
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      src/main/java/com/style24/front/biz/service/TsfOrderService.java

+ 11 - 1
src/main/java/com/style24/front/biz/service/TsfOrderService.java

@@ -2338,6 +2338,8 @@ public class TsfOrderService {
 			}
 		}
 		
+		int cartDcSumAmt = 0;
+		
 		for (Order od : tmtbGoodsApplyList) {
 			log.info("----------------------------------------------------------------------------");
 			log.info("cartSq ::: {}"			, od.getCartSq());
@@ -2376,10 +2378,12 @@ public class TsfOrderService {
 						return resultStr;
 					}
 					
+					/*
 					if (od.getCartCpnDcAmt() != vo.getCartCpnDcAmt()) {
 						resultStr = "장바구니쿠폰 할인 금액정보가 잘못 되었습니다.";
 						return resultStr;
 					}
+					*/
 					
 					if ("Y".equals(od.getPrePntDcAmtYn())) {
 						if (od.getPrePntDcAmt() != vo.getPrePntDcAmt()) {
@@ -2390,10 +2394,16 @@ public class TsfOrderService {
 				}
 			}
 			
+			cartDcSumAmt = cartDcSumAmt + od.getCartCpnDcAmt();
 			log.info("----------------------------------------------------------------------------");	
 		}
 		
-		
+		// 2021.10.13 장바구니금액 
+		if (order.getCartCpnDcSumAmt() != cartDcSumAmt) {
+			resultStr = "장바구니쿠폰 할인 금액정보가 잘못 되었습니다.";
+			return resultStr;
+		}
+
 		return resultStr;
 	}