update 查询会员钱包信息

This commit is contained in:
2024-03-25 15:04:01 +08:00
parent 99c6a584a3
commit 9f5b032ce1
2 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ public class MemberWalletInfoServiceImpl implements MemberWalletInfoService {
MemberWalletVO memberWalletVO = memberWalletInfoMapper.selectMemberWalletInfo(walletCode);
// 累计消费金额 = 累计充值 + 累计赠送 - 本金余额 - 赠送金余额
BigDecimal accumulatedConsumptionAmount = memberWalletVO.getAccumulatedRechargeAmount()
.add(memberWalletVO.getAccumulatedRechargeAmount())
.add(memberWalletVO.getAccumulatedRechargeGift())
.subtract(memberWalletVO.getPrincipalBalance())
.subtract(memberWalletVO.getGiftBalance());
memberWalletVO.setAccumulatedConsumptionAmount(accumulatedConsumptionAmount);