zoujiajian 8 달 전
부모
커밋
41b2d91964
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

+ 4 - 4
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -2551,13 +2551,13 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 				if (orderTotalMoney.compareTo(BigDecimal.ZERO) == 0) {
 					orderTotalMoney = sku.getPrice();
 				}
-				BigDecimal thisRefundMoney = orderTotalMoney.divide(BigDecimal.valueOf(2), RoundingMode.DOWN);
+				refundMoney = orderTotalMoney.divide(BigDecimal.valueOf(2), RoundingMode.DOWN);
 				if (money.compareTo(BigDecimal.ZERO) == 0) {
-					refundBalance = refundBalance.add(thisRefundMoney);
+					refundBalance = refundBalance.add(refundMoney);
 				} else {
-					if (thisRefundMoney.compareTo(money) > 0) {
+					if (refundMoney.compareTo(money) > 0) {
 						refundMoney = money;
-						refundBalance = thisRefundMoney.subtract(money);
+						refundBalance = refundMoney.subtract(money);
 					}
 				}
 				remainMonths = remainMonths - 12;