update 加赠送金额字段

This commit is contained in:
2023-11-27 15:41:53 +08:00
parent f98d1ec959
commit 6facfba88b
2 changed files with 14 additions and 22 deletions

View File

@@ -367,13 +367,16 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
try {
BigDecimal totalAccountAmount = BigDecimal.ZERO;
BigDecimal principalBalance = BigDecimal.ZERO;
BigDecimal giftBalance = BigDecimal.ZERO;
MemberWalletInfo memberWalletInfo = memberWalletInfoService.selectByMemberId(memberId, merchantId);
if (memberWalletInfo != null) {
totalAccountAmount = memberWalletInfo.getPrincipalBalance();
principalBalance = memberWalletInfo.getPrincipalBalance();
giftBalance = memberWalletInfo.getGiftBalance();
}
vo.setTotalAccountAmount(totalAccountAmount);
vo.setPrincipalBalance(principalBalance);
vo.setGiftBalance(giftBalance);
} catch (Exception e) {
log.error("查询用户余额异常 memberId:{}, merchantId:{}", memberId, merchantId, e);
}