## 看板充值数据排序;

This commit is contained in:
cabbage 2025-05-22 17:10:46 +08:00
parent 639627c416
commit 6f801e62b5
1 changed files with 4 additions and 3 deletions

View File

@ -163,7 +163,7 @@
<!-- 各币种充值数据 --> <!-- 各币种充值数据 -->
<select id="listAccountRechargeBoard" resultType="com.hzs.system.board.vo.BoardRechargeAccountVO"> <select id="listAccountRechargeBoard" resultType="com.hzs.system.board.vo.BoardRechargeAccountVO">
select ba.account_name, nvl(a.recharge_amount, 0) recharge_amount, 0 sort select ba.account_name, nvl(a.recharge_amount, 0) recharge_amount, 0 sort, ba.field_value
from (select t.pk_account, sum(t.recharge_amount) recharge_amount from (select t.pk_account, sum(t.recharge_amount) recharge_amount
from CU_MEMBER_RECHARGE t from CU_MEMBER_RECHARGE t
where t.del_flag = 0 where t.del_flag = 0
@ -185,7 +185,7 @@
and ba.del_flag = 0 and ba.del_flag = 0
where ba.field_value in (1, 2, 3, 4) where ba.field_value in (1, 2, 3, 4)
union all union all
select ba.account_name, nvl(a.recharge_amount, 0) recharge_amount, 1 sort select ba.account_name, nvl(a.recharge_amount, 0) recharge_amount, 1 sort, ba.field_value
from (select t.pk_account, sum(t.recharge_amount) recharge_amount from (select t.pk_account, sum(t.recharge_amount) recharge_amount
from CU_MEMBER_RECHARGE t from CU_MEMBER_RECHARGE t
where t.del_flag = 0 where t.del_flag = 0
@ -207,7 +207,7 @@
and ba.del_flag = 0 and ba.del_flag = 0
where ba.field_value in (1, 2, 3, 4) where ba.field_value in (1, 2, 3, 4)
union all union all
select ba.account_name, nvl(a.recharge_amount, 0) recharge_amount, 2 sort select ba.account_name, nvl(a.recharge_amount, 0) recharge_amount, 2 sort, ba.field_value
from (select t.pk_account, sum(t.recharge_amount) recharge_amount from (select t.pk_account, sum(t.recharge_amount) recharge_amount
from CU_MEMBER_RECHARGE t from CU_MEMBER_RECHARGE t
where t.del_flag = 0 where t.del_flag = 0
@ -228,6 +228,7 @@
on ba.pk_id = a.pk_account on ba.pk_id = a.pk_account
and ba.del_flag = 0 and ba.del_flag = 0
where ba.field_value in (1, 2, 3, 4) where ba.field_value in (1, 2, 3, 4)
order by sort, field_value
</select> </select>
</mapper> </mapper>