This commit is contained in:
lu7213 committed 2026-09-26 11:31:17 -04:00
1 parent 8d2c4e0159
commit 05b5a3d3cc
43 files changed
+434 -4728

No files matched your search

@@ -13,12 +13,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="deletedAt" column="deleted_at" />
<result property="appId" column="app_id" />
<result property="userId" column="user_id" />
<result property="tokenKey" column="token_key" />
<result property="walletUserName" column="wallet_user_name" />
<result property="tokenIndex" column="token_index" />
<result property="usdtBalance" column="usdt_balance" />
<result property="trxBalance" column="trx_balance" />
<result property="energyNum" column="energy_num" />
<result property="energyAllNum" column="energy_all_num" />
<result property="energyUsedNum" column="energy_used_num" />
<result property="bandwidthNum" column="bandwidth_num" />
<result property="withdrawUsdtBalance" column="withdraw_usdt_balance" />
<result property="delegatedEnergyTrxNum" column="delegated_energy_trx_num" />
<result property="delegatedEnergyValue" column="delegated_energy_value" />
<result property="acquiredDelegatedEnergyTrxNum" column="acquired_delegated_energy_trx_num" />
@@ -33,10 +35,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="voteNum" column="vote_num" />
<result property="votedNum" column="voted_num" />
<result property="bandwidthStakedNum" column="bandwidth_staked_num" />
<result property="bandwidthStakedAllNum" column="bandwidth_staked_all_num" />
<result property="bandwidthFreeNum" column="bandwidth_free_num" />
<result property="bandwidthFreeAllNum" column="bandwidth_free_all_num" />
</resultMap>
<sql id="selectWalletAddressVo">
select id, token, status, created_at, updated_at,bandwidth_staked_num, deleted_at, app_id, user_id, token_key, usdt_balance, trx_balance, energy_num, bandwidth_num, withdraw_usdt_balance, 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, vote_num, voted_num from wallet_address
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, 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">
@@ -44,14 +49,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<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>
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
<if test="deletedAt != null "> and deleted_at = #{deletedAt}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="tokenKey != null and tokenKey != ''"> and token_key = #{tokenKey}</if>
<if test="walletUserName != null and walletUserName != ''"> and wallet_user_name like concat('%', #{walletUserName}, '%')</if>
<if test="tokenIndex != null and tokenIndex != ''"> and token_index = #{tokenIndex}</if>
<if test="usdtBalance != null "> and usdt_balance = #{usdtBalance}</if>
<if test="trxBalance != null "> and trx_balance = #{trxBalance}</if>
<if test="energyNum != null "> and energy_num = #{energyNum}</if>
<if test="energyAllNum != null "> and energy_all_num = #{energyAllNum}</if>
<if test="energyUsedNum != null "> and energy_used_num = #{energyUsedNum}</if>
<if test="bandwidthNum != null "> and bandwidth_num = #{bandwidthNum}</if>
<if test="withdrawUsdtBalance != null "> and withdraw_usdt_balance = #{withdrawUsdtBalance}</if>
<if test="delegatedEnergyTrxNum != null "> and delegated_energy_trx_num = #{delegatedEnergyTrxNum}</if>
<if test="delegatedEnergyValue != null "> and delegated_energy_value = #{delegatedEnergyValue}</if>
<if test="acquiredDelegatedEnergyTrxNum != null "> and acquired_delegated_energy_trx_num = #{acquiredDelegatedEnergyTrxNum}</if>
@@ -65,6 +75,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bandwidthStakedTrxNum != null "> and bandwidth_staked_trx_num = #{bandwidthStakedTrxNum}</if>
<if test="voteNum != null "> and vote_num = #{voteNum}</if>
<if test="votedNum != null "> and voted_num = #{votedNum}</if>
<if test="bandwidthStakedNum != null "> and bandwidth_staked_num = #{bandwidthStakedNum}</if>
<if test="bandwidthStakedAllNum != null "> and bandwidth_staked_all_num = #{bandwidthStakedAllNum}</if>
<if test="bandwidthFreeNum != null "> and bandwidth_free_num = #{bandwidthFreeNum}</if>
<if test="bandwidthFreeAllNum != null "> and bandwidth_free_all_num = #{bandwidthFreeAllNum}</if>
</where>
</select>
@@ -83,12 +97,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deletedAt != null">deleted_at,</if>
<if test="appId != null">app_id,</if>
<if test="userId != null">user_id,</if>
<if test="tokenKey != null">token_key,</if>
<if test="walletUserName != null and walletUserName != ''">wallet_user_name,</if>
<if test="tokenIndex != null">token_index,</if>
<if test="usdtBalance != null">usdt_balance,</if>
<if test="trxBalance != null">trx_balance,</if>
<if test="energyNum != null">energy_num,</if>
<if test="energyAllNum != null">energy_all_num,</if>
<if test="energyUsedNum != null">energy_used_num,</if>
<if test="bandwidthNum != null">bandwidth_num,</if>
<if test="withdrawUsdtBalance != null">withdraw_usdt_balance,</if>
<if test="delegatedEnergyTrxNum != null">delegated_energy_trx_num,</if>
<if test="delegatedEnergyValue != null">delegated_energy_value,</if>
<if test="acquiredDelegatedEnergyTrxNum != null">acquired_delegated_energy_trx_num,</if>
@@ -103,6 +119,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="voteNum != null">vote_num,</if>
<if test="votedNum != null">voted_num,</if>
<if test="bandwidthStakedNum != null">bandwidth_staked_num,</if>
<if test="bandwidthStakedAllNum != null">bandwidth_staked_all_num,</if>
<if test="bandwidthFreeNum != null">bandwidth_free_num,</if>
<if test="bandwidthFreeAllNum != null">bandwidth_free_all_num,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="token != null and token != ''">#{token},</if>
@@ -112,12 +131,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deletedAt != null">#{deletedAt},</if>
<if test="appId != null">#{appId},</if>
<if test="userId != null">#{userId},</if>
<if test="tokenKey != null">#{tokenKey},</if>
<if test="walletUserName != null and walletUserName != ''">#{walletUserName},</if>
<if test="tokenIndex != null">#{tokenIndex},</if>
<if test="usdtBalance != null">#{usdtBalance},</if>
<if test="trxBalance != null">#{trxBalance},</if>
<if test="energyNum != null">#{energyNum},</if>
<if test="energyAllNum != null">#{energyAllNum},</if>
<if test="energyUsedNum != null">#{energyUsedNum},</if>
<if test="bandwidthNum != null">#{bandwidthNum},</if>
<if test="withdrawUsdtBalance != null">#{withdrawUsdtBalance},</if>
<if test="delegatedEnergyTrxNum != null">#{delegatedEnergyTrxNum},</if>
<if test="delegatedEnergyValue != null">#{delegatedEnergyValue},</if>
<if test="acquiredDelegatedEnergyTrxNum != null">#{acquiredDelegatedEnergyTrxNum},</if>
@@ -132,6 +153,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="voteNum != null">#{voteNum},</if>
<if test="votedNum != null">#{votedNum},</if>
<if test="bandwidthStakedNum != null">#{bandwidthStakedNum},</if>
<if test="bandwidthStakedAllNum != null">#{bandwidthStakedAllNum},</if>
<if test="bandwidthFreeNum != null">#{bandwidthFreeNum},</if>
<if test="bandwidthFreeAllNum != null">#{bandwidthFreeAllNum},</if>
</trim>
</insert>
@@ -145,12 +169,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deletedAt != null">deleted_at = #{deletedAt},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="tokenKey != null">token_key = #{tokenKey},</if>
<if test="walletUserName != null and walletUserName != ''">wallet_user_name = #{walletUserName},</if>
<if test="tokenIndex != null">token_index = #{tokenIndex},</if>
<if test="usdtBalance != null">usdt_balance = #{usdtBalance},</if>
<if test="trxBalance != null">trx_balance = #{trxBalance},</if>
<if test="energyNum != null">energy_num = #{energyNum},</if>
<if test="energyAllNum != null">energy_all_num = #{energyAllNum},</if>
<if test="energyUsedNum != null">energy_used_num = #{energyUsedNum},</if>
<if test="bandwidthNum != null">bandwidth_num = #{bandwidthNum},</if>
<if test="withdrawUsdtBalance != null">withdraw_usdt_balance = #{withdrawUsdtBalance},</if>
<if test="delegatedEnergyTrxNum != null">delegated_energy_trx_num = #{delegatedEnergyTrxNum},</if>
<if test="delegatedEnergyValue != null">delegated_energy_value = #{delegatedEnergyValue},</if>
<if test="acquiredDelegatedEnergyTrxNum != null">acquired_delegated_energy_trx_num = #{acquiredDelegatedEnergyTrxNum},</if>
@@ -165,6 +191,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="voteNum != null">vote_num = #{voteNum},</if>
<if test="votedNum != null">voted_num = #{votedNum},</if>
<if test="bandwidthStakedNum != null">bandwidth_staked_num = #{bandwidthStakedNum},</if>
<if test="bandwidthStakedAllNum != null">bandwidth_staked_all_num = #{bandwidthStakedAllNum},</if>
<if test="bandwidthFreeNum != null">bandwidth_free_num = #{bandwidthFreeNum},</if>
<if test="bandwidthFreeAllNum != null">bandwidth_free_all_num = #{bandwidthFreeAllNum},</if>
</trim>
where id = #{id}
</update>