debug:提现后剩余金额为0
This commit is contained in:
parent
85f7c37cc7
commit
7f3212a4bf
|
@ -394,10 +394,6 @@ public class TransactionBillServiceImpl implements TransactionBillService {
|
|||
bill.setAfterBalance(user.getBalance().subtract(dto.getMoney())); // 剩余金额
|
||||
|
||||
transactionTemplate.execute(status -> {
|
||||
// 减少余额后的用户信息
|
||||
SmUserVo afterUser = smUserMapper.selectSimpleById(userId);
|
||||
bill.setAfterBalance(afterUser.getBalance());
|
||||
|
||||
// 提现申请
|
||||
int insert = this.insertSmTransactionBill(bill);
|
||||
ServiceUtil.assertion(insert != 1, "提现申请失败");
|
||||
|
|
Loading…
Reference in New Issue
Block a user