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,10 +13,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
<result property="deletedAt" column="deleted_at" />
<result property="distTokenAddress" column="dist_token_address" />
</resultMap>
<sql id="selectAppsVo">
select id, user_id, name, description, status, created_at, updated_at, deleted_at from apps
select id, user_id, name, dist_token_address,description, status, created_at, updated_at, deleted_at from apps
</sql>
<select id="selectAppsList" parameterType="Apps" resultMap="AppsResult">
@@ -29,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="distTokenAddress != null and distTokenAddress != ''"> and dist_token_address like concat('%', #{distTokenAddress}, '%')</if>
</where>
</select>
@@ -47,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
<if test="deletedAt != null">deleted_at,</if>
<if test="distTokenAddress != null">dist_token_address,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
@@ -56,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
<if test="deletedAt != null">#{deletedAt},</if>
<if test="distTokenAddress != null">#{distTokenAddress},</if>
</trim>
</insert>
@@ -69,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
<if test="deletedAt != null">deleted_at = #{deletedAt},</if>
<if test="distTokenAddress != null">dist_token_address = #{distTokenAddress},</if>
</trim>
where id = #{id}
</update>
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.UsdtAggregationTaskItemMapper">
<resultMap type="UsdtAggregationTaskItem" id="UsdtAggregationTaskItemResult">
<result property="id" column="id" />
<result property="tokenAddress" column="token_address" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="opeAmount" column="ope_amount" />
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
<result property="deletedAt" column="deleted_at" />
<result property="userId" column="user_id" />
<result property="appId" column="app_id" />
<result property="parentId" column="parent_id" />
<result property="distTokenAddress" column="dist_token_address" />
</resultMap>
<sql id="selectUsdtAggregationTaskItemVo">
select id, token_address, status, remark, ope_amount, created_at, updated_at, deleted_at, user_id, app_id, parent_id, dist_token_address from usdt_aggregation_task_item
</sql>
<select id="selectUsdtAggregationTaskItemList" parameterType="UsdtAggregationTaskItem" resultMap="UsdtAggregationTaskItemResult">
<include refid="selectUsdtAggregationTaskItemVo"/>
<where>
<if test="status != null "> and status = #{status}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="parentId != null "> and parent_id = #{parentId}</if>
</where>
</select>
<select id="selectUsdtAggregationTaskItemById" parameterType="Long" resultMap="UsdtAggregationTaskItemResult">
<include refid="selectUsdtAggregationTaskItemVo"/>
where id = #{id}
</select>
<insert id="insertUsdtAggregationTaskItem" parameterType="UsdtAggregationTaskItem" useGeneratedKeys="true" keyProperty="id">
insert into usdt_aggregation_task_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="tokenAddress != null">token_address,</if>
<if test="status != null">status,</if>
<if test="remark != null">remark,</if>
<if test="opeAmount != null">ope_amount,</if>
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
<if test="deletedAt != null">deleted_at,</if>
<if test="userId != null">user_id,</if>
<if test="appId != null">app_id,</if>
<if test="parentId != null">parent_id,</if>
<if test="distTokenAddress != null">dist_token_address,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="tokenAddress != null">#{tokenAddress},</if>
<if test="status != null">#{status},</if>
<if test="remark != null">#{remark},</if>
<if test="opeAmount != null">#{opeAmount},</if>
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
<if test="deletedAt != null">#{deletedAt},</if>
<if test="userId != null">#{userId},</if>
<if test="appId != null">#{appId},</if>
<if test="parentId != null">#{parentId},</if>
<if test="distTokenAddress != null">#{distTokenAddress},</if>
</trim>
</insert>
<update id="updateUsdtAggregationTaskItem" parameterType="UsdtAggregationTaskItem">
update usdt_aggregation_task_item
<trim prefix="SET" suffixOverrides=",">
<if test="tokenAddress != null">token_address = #{tokenAddress},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="opeAmount != null">ope_amount = #{opeAmount},</if>
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
<if test="deletedAt != null">deleted_at = #{deletedAt},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="distTokenAddress != null">dist_token_address = #{distTokenAddress},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteUsdtAggregationTaskItemById" parameterType="Long">
delete from usdt_aggregation_task_item where id = #{id}
</delete>
<delete id="deleteUsdtAggregationTaskItemByIds" parameterType="String">
delete from usdt_aggregation_task_item where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.UsdtAggregationTaskMapper">
<resultMap type="UsdtAggregationTask" id="UsdtAggregationTaskResult">
<result property="id" column="id" />
<result property="taskName" column="task_name" />
<result property="appId" column="app_id" />
<result property="userId" column="user_id" />
<result property="remark" column="remark" />
<result property="status" column="status" />
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
<result property="deletedAt" column="deleted_at" />
<result property="totalAmount" column="total_amount" />
<result property="exeTime" column="exe_time" />
<result property="verifyStatus" column="verify_status" />
<result property="distTokenAddress" column="dist_token_address" />
</resultMap>
<sql id="selectUsdtAggregationTaskVo">
select id, task_name, app_id, user_id, remark, status, created_at, updated_at, deleted_at, total_amount, exe_time, verify_status, dist_token_address from usdt_aggregation_task
</sql>
<select id="selectUsdtAggregationTaskList" parameterType="UsdtAggregationTask" resultMap="UsdtAggregationTaskResult">
<include refid="selectUsdtAggregationTaskVo"/>
<where>
<if test="taskName != null and taskName != ''"> and task_name like concat('%', #{taskName}, '%')</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="status != null "> and status = #{status}</if>
<if test="verifyStatus != null "> and verify_status = #{verifyStatus}</if>
<if test="distTokenAddress != null and distTokenAddress != ''"> and dist_token_address like concat('%', #{distTokenAddress}, '%')</if>
</where>
</select>
<select id="selectUsdtAggregationTaskById" parameterType="Long" resultMap="UsdtAggregationTaskResult">
<include refid="selectUsdtAggregationTaskVo"/>
where id = #{id}
</select>
<insert id="insertUsdtAggregationTask" parameterType="UsdtAggregationTask" useGeneratedKeys="true" keyProperty="id">
insert into usdt_aggregation_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskName != null">task_name,</if>
<if test="appId != null">app_id,</if>
<if test="userId != null">user_id,</if>
<if test="remark != null">remark,</if>
<if test="status != null">status,</if>
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
<if test="deletedAt != null">deleted_at,</if>
<if test="totalAmount != null">total_amount,</if>
<if test="exeTime != null">exe_time,</if>
<if test="verifyStatus != null">verify_status,</if>
<if test="distTokenAddress != null">dist_token_address,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskName != null">#{taskName},</if>
<if test="appId != null">#{appId},</if>
<if test="userId != null">#{userId},</if>
<if test="remark != null">#{remark},</if>
<if test="status != null">#{status},</if>
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
<if test="deletedAt != null">#{deletedAt},</if>
<if test="totalAmount != null">#{totalAmount},</if>
<if test="exeTime != null">#{exeTime},</if>
<if test="verifyStatus != null">#{verifyStatus},</if>
<if test="distTokenAddress != null">#{distTokenAddress},</if>
</trim>
</insert>
<update id="updateUsdtAggregationTask" parameterType="UsdtAggregationTask">
update usdt_aggregation_task
<trim prefix="SET" suffixOverrides=",">
<if test="taskName != null">task_name = #{taskName},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="status != null">status = #{status},</if>
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
<if test="deletedAt != null">deleted_at = #{deletedAt},</if>
<if test="totalAmount != null">total_amount = #{totalAmount},</if>
<if test="exeTime != null">exe_time = #{exeTime},</if>
<if test="verifyStatus != null">verify_status = #{verifyStatus},</if>
<if test="distTokenAddress != null">dist_token_address = #{distTokenAddress},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteUsdtAggregationTaskById" parameterType="Long">
delete from usdt_aggregation_task where id = #{id}
</delete>
<delete id="deleteUsdtAggregationTaskByIds" parameterType="String">
delete from usdt_aggregation_task where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -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>
@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="trxBalance != null "> and trx_balance = #{trxBalance}</if>
<if test="ethBalance != null "> and eth_balance = #{ethBalance}</if>
<if test="password != null and password != ''"> and password = #{password}</if>
<if test="id != null"> and id = #{id}</if>
</where>
</select>