From caf14cbdf26984aab0e880bb37ffb85dcdf3a525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Wed, 7 Aug 2024 10:11:52 +0800 Subject: [PATCH] =?UTF-8?q?debug:=E6=8F=90=E7=8E=B0=E5=90=8E=E5=89=A9?= =?UTF-8?q?=E4=BD=99=E9=87=91=E9=A2=9D=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TransactionBillServiceImpl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java index 78d27f04..b91c5dcf 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/TransactionBillServiceImpl.java @@ -391,6 +391,7 @@ public class TransactionBillServiceImpl implements TransactionBillService { bill.setChannelId(channel.getChannelId()); bill.setWithdrawType(WithdrawType.ONLINE.getType()); bill.setChannelCost(channel.getCostRate().multiply(bill.getMoney()).divide(new BigDecimal(100), 2, RoundingMode.HALF_UP)); // 渠道成本 + bill.setAfterBalance(user.getBalance().subtract(dto.getMoney())); // 剩余金额 transactionTemplate.execute(status -> { // 提现申请 @@ -400,10 +401,6 @@ public class TransactionBillServiceImpl implements TransactionBillService { // 减少余额,并判断提现金额是否超额(减少的是交易金额) userService.subtractBalance(userId, bill.getMoney(), String.format("提现申请:%s", bill.getBillNo()), RecordBalanceBstType.WITHDRAW, bill.getBillId()); - // 减少余额后的用户信息 - SmUserVo afterUser = smUserMapper.selectSimpleById(userId); - bill.setAfterBalance(afterUser.getBalance()); - return insert; });