|
@@ -78,11 +78,11 @@
|
|
|
<select id="detail" resultType="com.yonge.cooleshow.biz.dal.vo.UserAccountVo">
|
|
|
SELECT
|
|
|
<include refid="baseColumns"/>,
|
|
|
- (select sum(a.trans_amount_) from user_cash_account_record a where a.account_id_ = t.user_id_
|
|
|
+ (select ifnull(sum(a.trans_amount_),0) from user_cash_account_record a where a.account_id_ = t.user_id_
|
|
|
and a.post_status_ = 'WAIT' and a.in_or_out_ = 'IN') as amountUnrecorded,
|
|
|
- (select sum(a.trans_amount_) from user_cash_account_record a where a.account_id_ = t.user_id_
|
|
|
+ (select ifnull(sum(a.trans_amount_),0) from user_cash_account_record a where a.account_id_ = t.user_id_
|
|
|
and a.post_status_ = 'RECORDED' and a.in_or_out_ = 'IN') as amountRecorded,
|
|
|
- (select sum(a.trans_amount_) from user_cash_account_record a where a.account_id_ = t.user_id_
|
|
|
+ (select ifnull(sum(a.trans_amount_),0) from user_cash_account_record a where a.account_id_ = t.user_id_
|
|
|
and a.post_status_ in ('RECORDED','WAIT') and a.in_or_out_ = 'IN'
|
|
|
and a.biz_type_ in ('LIVE_SHARE','GROUP_SHARE','VIDEO_SHARE','MUSIC_SHARE','ALBUM_SHARE','VIP_SHARE','MALL_SHARE','ACTI_REGIST_SHARE')) as amountShare
|
|
|
FROM user_cash_account t
|