mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 01:20:15 +08:00
update
This commit is contained in:
@@ -23,6 +23,16 @@ public class MemberWalletInfoVO {
|
||||
*/
|
||||
private BigDecimal currentBalance;
|
||||
|
||||
/**
|
||||
* 本金金额
|
||||
*/
|
||||
private BigDecimal principalBalance;
|
||||
|
||||
/**
|
||||
* 赠送金余额
|
||||
*/
|
||||
private BigDecimal giftBalance;
|
||||
|
||||
/**
|
||||
* 累计充值
|
||||
*/
|
||||
|
||||
@@ -203,13 +203,13 @@
|
||||
</select>
|
||||
|
||||
<select id="selectMemberWalletInfo" resultType="com.jsowell.pile.vo.base.MemberWalletVO">
|
||||
SELECT t1.member_id as memberId,
|
||||
t1.wallet_code as walletCode,
|
||||
t1.merchant_id as merchantId,
|
||||
t1.principal_balance as principalBalance,
|
||||
t1.gift_balance as giftBalance,
|
||||
t2.accumulatedRechargeAmount as accumulatedRechargeAmount,
|
||||
t3.accumulatedRechargeGift as accumulatedRechargeGift
|
||||
SELECT t1.member_id as memberId,
|
||||
t1.wallet_code as walletCode,
|
||||
t1.merchant_id as merchantId,
|
||||
ifnull(t1.principal_balance, 0) as principalBalance,
|
||||
ifnull(t1.gift_balance, 0) as giftBalance,
|
||||
t2.accumulatedRechargeAmount as accumulatedRechargeAmount,
|
||||
t3.accumulatedRechargeGift as accumulatedRechargeGift
|
||||
from member_wallet_info t1
|
||||
left join (select wallet_code, sum(amount) as accumulatedRechargeAmount
|
||||
from `member_wallet_log`
|
||||
|
||||
Reference in New Issue
Block a user