debug:提现后剩余金额为0

This commit is contained in:
墨大叔 2024-08-07 10:15:42 +08:00
parent 85f7c37cc7
commit 7f3212a4bf

View File

@ -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, "提现申请失败");