This commit is contained in:
lu7213 committed 2026-03-03 09:39:33 +08:00
1 parent 68a2b4f68c
commit 7cd697187c
308 files changed
+30454 -75

No files matched your search

@@ -13,12 +13,30 @@ 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="usdtBalance" column="usdt_balance" />
<result property="trxBalance" column="trx_balance" />
<result property="energyNum" column="energy_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" />
<result property="acquiredDelegatedEnergyValue" column="acquired_delegated_energy_value" />
<result property="delegatedBandwidthTrxNum" column="delegated_bandwidth_trx_num" />
<result property="delegatedBandwidthValue" column="delegated_bandwidth_value" />
<result property="acquiredDelegatedBandwidthTrxNum" column="acquired_delegated_bandwidth_trx_num" />
<result property="acquiredDelegatedBandwidthValue" column="acquired_delegated_bandwidth_value" />
<result property="stakedTrxNum" column="staked_trx_num" />
<result property="energyStakedTrxNum" column="energy_staked_trx_num" />
<result property="bandwidthStakedTrxNum" column="bandwidth_staked_trx_num" />
<result property="voteNum" column="vote_num" />
<result property="votedNum" column="voted_num" />
<result property="bandwidthStakedNum" column="bandwidth_staked_num" />
</resultMap>
<sql id="selectWalletAddressVo">
select id, token, status, created_at, updated_at, deleted_at, app_id, user_id,usdt_balance,trx_balance from wallet_address
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
</sql>
<select id="selectWalletAddressList" parameterType="WalletAddress" resultMap="WalletAddressResult">
@@ -26,11 +44,27 @@ 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="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="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>
<if test="acquiredDelegatedEnergyValue != null "> and acquired_delegated_energy_value = #{acquiredDelegatedEnergyValue}</if>
<if test="delegatedBandwidthTrxNum != null "> and delegated_bandwidth_trx_num = #{delegatedBandwidthTrxNum}</if>
<if test="delegatedBandwidthValue != null "> and delegated_bandwidth_value = #{delegatedBandwidthValue}</if>
<if test="acquiredDelegatedBandwidthTrxNum != null "> and acquired_delegated_bandwidth_trx_num = #{acquiredDelegatedBandwidthTrxNum}</if>
<if test="acquiredDelegatedBandwidthValue != null "> and acquired_delegated_bandwidth_value = #{acquiredDelegatedBandwidthValue}</if>
<if test="stakedTrxNum != null "> and staked_trx_num = #{stakedTrxNum}</if>
<if test="energyStakedTrxNum != null "> and energy_staked_trx_num = #{energyStakedTrxNum}</if>
<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>
</where>
</select>
@@ -49,8 +83,26 @@ 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="usdtBalance != null">usdt_balance,</if>
<if test="trxBalance != null">trx_balance,</if>
<if test="energyNum != null">energy_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>
<if test="acquiredDelegatedEnergyValue != null">acquired_delegated_energy_value,</if>
<if test="delegatedBandwidthTrxNum != null">delegated_bandwidth_trx_num,</if>
<if test="delegatedBandwidthValue != null">delegated_bandwidth_value,</if>
<if test="acquiredDelegatedBandwidthTrxNum != null">acquired_delegated_bandwidth_trx_num,</if>
<if test="acquiredDelegatedBandwidthValue != null">acquired_delegated_bandwidth_value,</if>
<if test="stakedTrxNum != null">staked_trx_num,</if>
<if test="energyStakedTrxNum != null">energy_staked_trx_num,</if>
<if test="bandwidthStakedTrxNum != null">bandwidth_staked_trx_num,</if>
<if test="voteNum != null">vote_num,</if>
<if test="votedNum != null">voted_num,</if>
<if test="bandwidthStakedNum != null">bandwidth_staked_num,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="token != null and token != ''">#{token},</if>
@@ -60,8 +112,26 @@ 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="usdtBalance != null">#{usdtBalance},</if>
<if test="trxBalance != null">#{trxBalance},</if>
<if test="energyNum != null">#{energyNum},</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>
<if test="acquiredDelegatedEnergyValue != null">#{acquiredDelegatedEnergyValue},</if>
<if test="delegatedBandwidthTrxNum != null">#{delegatedBandwidthTrxNum},</if>
<if test="delegatedBandwidthValue != null">#{delegatedBandwidthValue},</if>
<if test="acquiredDelegatedBandwidthTrxNum != null">#{acquiredDelegatedBandwidthTrxNum},</if>
<if test="acquiredDelegatedBandwidthValue != null">#{acquiredDelegatedBandwidthValue},</if>
<if test="stakedTrxNum != null">#{stakedTrxNum},</if>
<if test="energyStakedTrxNum != null">#{energyStakedTrxNum},</if>
<if test="bandwidthStakedTrxNum != null">#{bandwidthStakedTrxNum},</if>
<if test="voteNum != null">#{voteNum},</if>
<if test="votedNum != null">#{votedNum},</if>
<if test="bandwidthStakedNum != null">#{bandwidthStakedNum},</if>
</trim>
</insert>
@@ -75,8 +145,26 @@ 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="usdtBalance != null">usdt_balance = #{usdtBalance},</if>
<if test="trxBalance != null">trx_balance = #{trxBalance},</if>
<if test="energyNum != null">energy_num = #{energyNum},</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>
<if test="acquiredDelegatedEnergyValue != null">acquired_delegated_energy_value = #{acquiredDelegatedEnergyValue},</if>
<if test="delegatedBandwidthTrxNum != null">delegated_bandwidth_trx_num = #{delegatedBandwidthTrxNum},</if>
<if test="delegatedBandwidthValue != null">delegated_bandwidth_value = #{delegatedBandwidthValue},</if>
<if test="acquiredDelegatedBandwidthTrxNum != null">acquired_delegated_bandwidth_trx_num = #{acquiredDelegatedBandwidthTrxNum},</if>
<if test="acquiredDelegatedBandwidthValue != null">acquired_delegated_bandwidth_value = #{acquiredDelegatedBandwidthValue},</if>
<if test="stakedTrxNum != null">staked_trx_num = #{stakedTrxNum},</if>
<if test="energyStakedTrxNum != null">energy_staked_trx_num = #{energyStakedTrxNum},</if>
<if test="bandwidthStakedTrxNum != null">bandwidth_staked_trx_num = #{bandwidthStakedTrxNum},</if>
<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>
</trim>
where id = #{id}
</update>