update 会员钱包

This commit is contained in:
2023-11-22 19:16:27 +08:00
parent 82bb197f5b
commit aa8c4960f6
2 changed files with 5 additions and 2 deletions

View File

@@ -326,13 +326,16 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
}
BigDecimal totalAccountAmount = BigDecimal.ZERO;
BigDecimal principalBalance = BigDecimal.ZERO;
if (StringUtils.isNotBlank(merchantId)) {
MemberWalletInfo memberWalletInfo = memberWalletInfoService.selectByMemberId(memberId, merchantId);
if (memberWalletInfo != null) {
totalAccountAmount = memberWalletInfo.getPrincipalBalance();
principalBalance = memberWalletInfo.getPrincipalBalance();
}
}
vo.setTotalAccountAmount(totalAccountAmount);
vo.setPrincipalBalance(principalBalance);
// 查询用户车牌号
MemberPlateNumberRelation memberPlateNumberRelation = new MemberPlateNumberRelation();