Преглед изворни кода

금액 유효성 체크 오류 수정

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;
 	}