address和USDTmanage/address token管理页面,参考归集任务页面布局和功能,添加统计功能,优化页面布局。 商户和管理员都去掉删除和修改,商户的详情页面去掉对地址的各种金额操作,只保留刷新链上数据功能

This commit is contained in:
lu7213 committed 2026-10-19 04:42:18 -04:00
1 parent 37754f3af0
commit c516124eff
5 files changed
+127 -11

No files matched your search

@@ -59,9 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, token, status, created_at, updated_at, deleted_at, app_id, user_id, wallet_user_name, token_index, usdt_balance, trx_balance, energy_num, energy_all_num, energy_used_num, bandwidth_num, delegated_energy_trx_num, delegated_energy_value, acquired_delegated_energy_trx_num, acquired_delegated_energy_value, delegated_bandwidth_trx_num, delegated_bandwidth_value, acquired_delegated_bandwidth_trx_num, acquired_delegated_bandwidth_value, staked_trx_num, energy_staked_trx_num, bandwidth_staked_trx_num, bandwidth_staked_delegated_num, energy_staked_delegated_num, vote_num, voted_num, bandwidth_staked_num, bandwidth_staked_all_num, bandwidth_free_num, bandwidth_free_all_num from wallet_address
</sql>
<select id="selectWalletAddressList" parameterType="WalletAddress" resultMap="WalletAddressResult">
<include refid="selectWalletAddressVo"/>
<where>
<sql id="walletQueryWhere">
<where>
and deleted_at is null
<if test="token != null and token != ''"> and token = #{token}</if>
<if test="status != null "> and status = #{status}</if>
<if test="createdAt != null "> and created_at = #{createdAt}</if>
@@ -98,6 +98,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bandwidthFreeAllNum != null "> and bandwidth_free_all_num = #{bandwidthFreeAllNum}</if>
and wallet_user_name is not null
</where>
</sql>
<select id="selectWalletAddressList" parameterType="WalletAddress" resultMap="WalletAddressResult">
<include refid="selectWalletAddressVo"/>
<include refid="walletQueryWhere"/>
order by created_at desc, id desc
</select>
<select id="selectWalletStatistics" parameterType="WalletAddress" resultType="java.util.LinkedHashMap">
select count(*) as total,
coalesce(sum(case when status = 1 then 1 else 0 end), 0) as enabled,
cast(coalesce(sum(usdt_balance), 0) as char) as usdtBalance,
cast(coalesce(sum(trx_balance), 0) as char) as trxBalance,
cast(coalesce(sum(greatest(0, coalesce(energy_num, 0))), 0) as char) as energy,
cast(coalesce(sum(greatest(0, coalesce(bandwidth_num, 0))), 0) as char) as bandwidth
from wallet_address
<include refid="walletQueryWhere"/>
</select>
<select id="selectWalletAddressById" parameterType="Long" resultMap="WalletAddressResult">