mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-25 17:49:49 +08:00
update
This commit is contained in:
@@ -338,8 +338,14 @@ public class MemberService {
|
|||||||
// 用户未注册小程序
|
// 用户未注册小程序
|
||||||
throw new BusinessException(ReturnCodeEnum.CODE_AUTHENTICATION_ERROR);
|
throw new BusinessException(ReturnCodeEnum.CODE_AUTHENTICATION_ERROR);
|
||||||
}
|
}
|
||||||
|
// 本金
|
||||||
|
BigDecimal principalBalance = memberWalletVO.getPrincipalBalance();
|
||||||
|
vo.setPrincipalBalance(principalBalance);
|
||||||
|
// 赠金
|
||||||
|
BigDecimal giftBalance = memberWalletVO.getGiftBalance();
|
||||||
|
vo.setGiftBalance(giftBalance);
|
||||||
// 当前余额
|
// 当前余额
|
||||||
vo.setCurrentBalance(memberWalletVO.getPrincipalBalance().add(memberWalletVO.getGiftBalance()));
|
vo.setCurrentBalance(principalBalance.add(giftBalance));
|
||||||
// 累计充值金额
|
// 累计充值金额
|
||||||
vo.setAccumulatedRechargeAmount(memberWalletVO.getAccumulatedRechargeAmount());
|
vo.setAccumulatedRechargeAmount(memberWalletVO.getAccumulatedRechargeAmount());
|
||||||
// 累计赠送金额
|
// 累计赠送金额
|
||||||
|
|||||||
@@ -23,6 +23,16 @@ public class MemberWalletInfoVO {
|
|||||||
*/
|
*/
|
||||||
private BigDecimal currentBalance;
|
private BigDecimal currentBalance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 本金金额
|
||||||
|
*/
|
||||||
|
private BigDecimal principalBalance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 赠送金余额
|
||||||
|
*/
|
||||||
|
private BigDecimal giftBalance;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 累计充值
|
* 累计充值
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -206,8 +206,8 @@
|
|||||||
SELECT t1.member_id as memberId,
|
SELECT t1.member_id as memberId,
|
||||||
t1.wallet_code as walletCode,
|
t1.wallet_code as walletCode,
|
||||||
t1.merchant_id as merchantId,
|
t1.merchant_id as merchantId,
|
||||||
t1.principal_balance as principalBalance,
|
ifnull(t1.principal_balance, 0) as principalBalance,
|
||||||
t1.gift_balance as giftBalance,
|
ifnull(t1.gift_balance, 0) as giftBalance,
|
||||||
t2.accumulatedRechargeAmount as accumulatedRechargeAmount,
|
t2.accumulatedRechargeAmount as accumulatedRechargeAmount,
|
||||||
t3.accumulatedRechargeGift as accumulatedRechargeGift
|
t3.accumulatedRechargeGift as accumulatedRechargeGift
|
||||||
from member_wallet_info t1
|
from member_wallet_info t1
|
||||||
|
|||||||
Reference in New Issue
Block a user