重大BUG:退款余额未扣减
This commit is contained in:
parent
96dd651d80
commit
d8640dc4bd
|
@ -1672,6 +1672,7 @@ public class TransactionBillServiceImpl implements TransactionBillService, After
|
||||||
refundBonus.setArrivalType(bonus.getArrivalType());
|
refundBonus.setArrivalType(bonus.getArrivalType());
|
||||||
refundBonus.setBillNo(bonus.getBillNo());
|
refundBonus.setBillNo(bonus.getBillNo());
|
||||||
refundBonus.setBillId(bonus.getBillId());
|
refundBonus.setBillId(bonus.getBillId());
|
||||||
|
refundBonus.setToBalance(bonus.getToBalance());
|
||||||
refundList.add(refundBonus);
|
refundList.add(refundBonus);
|
||||||
|
|
||||||
dividedAmount = dividedAmount.add(bonusRefundAmount);
|
dividedAmount = dividedAmount.add(bonusRefundAmount);
|
||||||
|
@ -1707,6 +1708,7 @@ public class TransactionBillServiceImpl implements TransactionBillService, After
|
||||||
ServiceUtil.assertion(refund != 1, "可退款金额不足");
|
ServiceUtil.assertion(refund != 1, "可退款金额不足");
|
||||||
|
|
||||||
// 扣减分成方余额
|
// 扣减分成方余额
|
||||||
|
ServiceUtil.assertion(bonus.getToBalance() == null, "数据异常,请联系管理员处理");
|
||||||
if (bonus.getToBalance() != null && bonus.getToBalance()) {
|
if (bonus.getToBalance() != null && bonus.getToBalance()) {
|
||||||
if (BonusArrivalType.userList().contains(bonus.getArrivalType())) {
|
if (BonusArrivalType.userList().contains(bonus.getArrivalType())) {
|
||||||
userService.subtractBalance(bonus.getArrivalId(), bonus.getRefundAmount(), String.format("订单退款:%s", bonus.getBillNo()), RecordBalanceBstType.RECHARGE, bonus.getBillId());
|
userService.subtractBalance(bonus.getArrivalId(), bonus.getRefundAmount(), String.format("订单退款:%s", bonus.getBillNo()), RecordBalanceBstType.RECHARGE, bonus.getBillId());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user