后台-结算记录-排除已退款
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
flow_team_member_invite_user fi, users u, charge_record r
|
||||
where fi.uid = r.uid
|
||||
and u.uid = r.uid
|
||||
and r.charge_status in (2,6)
|
||||
and r.charge_status = 2
|
||||
and r.charge_prod_id != 'exchange'
|
||||
and r.buss_type in (0,4)
|
||||
and date_format(r.create_time, '%Y-%m') = date_format(u.create_time, '%Y-%m')
|
||||
@@ -161,7 +161,7 @@
|
||||
from
|
||||
charge_record r, flow_team_member fm, flow_team_member_invite_user fu
|
||||
left join users u on fu.uid = u.uid
|
||||
where fu.uid = r.uid and r.charge_status in (2,6) and r.charge_prod_id != 'exchange'
|
||||
where fu.uid = r.uid and r.charge_status = 2 and r.charge_prod_id != 'exchange'
|
||||
and fm.member_id = fu.member_id
|
||||
<if test="teamIds != null and teamIds.size > 0">
|
||||
and fu.team_id in
|
||||
@@ -190,7 +190,7 @@
|
||||
#{teamId}
|
||||
</foreach>
|
||||
</if>
|
||||
and r.charge_status in (2,6) and r.charge_prod_id != 'exchange' and r.buss_type in (0,4)
|
||||
and r.charge_status = 2 and r.charge_prod_id != 'exchange' and r.buss_type in (0,4)
|
||||
and date_format(r.create_time, '%Y-%m') = #{month}
|
||||
<if test="queryLimitTime != null and queryLimitTime != ''">
|
||||
and u.create_time >= #{queryLimitTime}
|
||||
|
Reference in New Issue
Block a user