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