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