6288 交易流水充值后消费,账户余额显示不对

This commit is contained in:
gaowdong 2025-06-11 09:27:40 +08:00
parent a466bab26d
commit 4af9fe0bdc
1 changed files with 4 additions and 2 deletions

View File

@ -156,8 +156,10 @@ public class AccWalletInfoBusiness {
accountTrade.setTradeState(AccTradeStateEnum.TAKE_EFFECT.getKey());
accountTrade.setUpdateBy(StringUtils.isBlank(operation.getOperationUser()) ?
SecurityUtils.getUsername() : operation.getOperationUser());
accountTrade.setWalletBalTotal(walletBalByWalletType);
accountTrade.setAccountAllBal(walletBalByWalletType);
accBalTotal = walletInfoList.stream().map(AccWalletInfo::getWalletBal)
.filter(ObjectUtil::isNotNull).reduce(BigDecimal.ZERO, BigDecimal::add);
accountTrade.setWalletBalTotal(accBalTotal);
accountTrade.setAccountAllBal(accBalTotal);
accountTrade.setMachineSn(operation.getDeviceSn());
this.accTradeService.updateAccTrade(accountTrade);
}catch (Exception ex) {