123
This commit is contained in:
1 parent
8d2c4e0159
commit
05b5a3d3cc
43 files changed
+434
-4728
No files matched your search
@@ -13,6 +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="needEnergyNum" column="need_energy_num" />
|
||||
<result property="needBandwidthNum" column="need_bandwidth_num" />
|
||||
<result property="gapBandwidthNum" column="gap_bandwidth_num" />
|
||||
<result property="gapEnergyNum" column="gap_energy_num" />
|
||||
<result property="willUseTrxNum" column="will_use_trx_num" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="appId" column="app_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
@@ -20,17 +25,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</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
|
||||
select id, token_address, status, remark, ope_amount, created_at, updated_at, deleted_at, need_energy_num, need_bandwidth_num, gap_bandwidth_num, gap_energy_num, will_use_trx_num, 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="tokenAddress != null and tokenAddress != ''"> and token_address = #{tokenAddress}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="opeAmount != null "> and ope_amount = #{opeAmount}</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="needEnergyNum != null "> and need_energy_num = #{needEnergyNum}</if>
|
||||
<if test="needBandwidthNum != null "> and need_bandwidth_num = #{needBandwidthNum}</if>
|
||||
<if test="gapBandwidthNum != null "> and gap_bandwidth_num = #{gapBandwidthNum}</if>
|
||||
<if test="gapEnergyNum != null "> and gap_energy_num = #{gapEnergyNum}</if>
|
||||
<if test="willUseTrxNum != null "> and will_use_trx_num = #{willUseTrxNum}</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>
|
||||
<if test="distTokenAddress != null and distTokenAddress != ''"> and dist_token_address = #{distTokenAddress}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -49,6 +64,11 @@ 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="needEnergyNum != null">need_energy_num,</if>
|
||||
<if test="needBandwidthNum != null">need_bandwidth_num,</if>
|
||||
<if test="gapBandwidthNum != null">gap_bandwidth_num,</if>
|
||||
<if test="gapEnergyNum != null">gap_energy_num,</if>
|
||||
<if test="willUseTrxNum != null">will_use_trx_num,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="appId != null">app_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
@@ -62,6 +82,11 @@ 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="needEnergyNum != null">#{needEnergyNum},</if>
|
||||
<if test="needBandwidthNum != null">#{needBandwidthNum},</if>
|
||||
<if test="gapBandwidthNum != null">#{gapBandwidthNum},</if>
|
||||
<if test="gapEnergyNum != null">#{gapEnergyNum},</if>
|
||||
<if test="willUseTrxNum != null">#{willUseTrxNum},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="appId != null">#{appId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
@@ -79,6 +104,11 @@ 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="needEnergyNum != null">need_energy_num = #{needEnergyNum},</if>
|
||||
<if test="needBandwidthNum != null">need_bandwidth_num = #{needBandwidthNum},</if>
|
||||
<if test="gapBandwidthNum != null">gap_bandwidth_num = #{gapBandwidthNum},</if>
|
||||
<if test="gapEnergyNum != null">gap_energy_num = #{gapEnergyNum},</if>
|
||||
<if test="willUseTrxNum != null">will_use_trx_num = #{willUseTrxNum},</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>
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
<?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.UsdtFundFlowMapper">
|
||||
|
||||
<resultMap type="UsdtFundFlow" id="UsdtFundFlowResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="appId" column="app_id" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="deletedAt" column="deleted_at" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="opType" column="op_type" />
|
||||
<result property="token" column="token" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUsdtFundFlowVo">
|
||||
select id, order_id, user_id, app_id, created_at, updated_at, deleted_at, amount, op_type, token, remark from usdt_fund_flow
|
||||
</sql>
|
||||
|
||||
<select id="selectUsdtFundFlowList" parameterType="UsdtFundFlow" resultMap="UsdtFundFlowResult">
|
||||
<include refid="selectUsdtFundFlowVo"/>
|
||||
<where>
|
||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="appId != null "> and app_id = #{appId}</if>
|
||||
<if test="opType != null "> and op_type = #{opType}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUsdtFundFlowById" parameterType="Long" resultMap="UsdtFundFlowResult">
|
||||
<include refid="selectUsdtFundFlowVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUsdtFundFlow" parameterType="UsdtFundFlow" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into usdt_fund_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="appId != null">app_id,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="deletedAt != null">deleted_at,</if>
|
||||
<if test="amount != null">amount,</if>
|
||||
<if test="opType != null">op_type,</if>
|
||||
<if test="token != null">token,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">#{orderId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="appId != null">#{appId},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="deletedAt != null">#{deletedAt},</if>
|
||||
<if test="amount != null">#{amount},</if>
|
||||
<if test="opType != null">#{opType},</if>
|
||||
<if test="token != null">#{token},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUsdtFundFlow" parameterType="UsdtFundFlow">
|
||||
update usdt_fund_flow
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id = #{orderId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="appId != null">app_id = #{appId},</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="amount != null">amount = #{amount},</if>
|
||||
<if test="opType != null">op_type = #{opType},</if>
|
||||
<if test="token != null">token = #{token},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUsdtFundFlowById" parameterType="Long">
|
||||
delete from usdt_fund_flow where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUsdtFundFlowByIds" parameterType="String">
|
||||
delete from usdt_fund_flow where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -23,10 +23,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="appId" column="app_id" />
|
||||
<result property="settlementStatus" column="settlement_status" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="orderType" column="order_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUsdtOrdersVo">
|
||||
select id, trade_id, order_id, block_transaction_id, actual_amount, amount, token, status, notify_url, redirect_url, callback_num, callback_confirm, created_at, updated_at, deleted_at, app_id, settlement_status, user_id from orders
|
||||
select id, trade_id, order_id,order_type, block_transaction_id, actual_amount, amount, token, status, notify_url, redirect_url, callback_num, callback_confirm, created_at, updated_at, deleted_at, app_id, settlement_status, user_id from orders
|
||||
</sql>
|
||||
|
||||
<select id="selectUsdtOrdersList" parameterType="UsdtOrders" resultMap="UsdtOrdersResult">
|
||||
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="appId != null "> and app_id = #{appId}</if>
|
||||
<if test="settlementStatus != null "> and settlement_status = #{settlementStatus}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="orderType != null "> and order_type = #{orderType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -68,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="appId != null">app_id,</if>
|
||||
<if test="settlementStatus != null">settlement_status,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="orderType != null">order_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="tradeId != null and tradeId != ''">#{tradeId},</if>
|
||||
@@ -87,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="appId != null">#{appId},</if>
|
||||
<if test="settlementStatus != null">#{settlementStatus},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="orderType != null">#{orderType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -110,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="appId != null">app_id = #{appId},</if>
|
||||
<if test="settlementStatus != null">settlement_status = #{settlementStatus},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="orderType != null">order_type = #{orderType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
-90
@@ -1,90 +0,0 @@
|
||||
<?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.UsdtUserSettlementConfigurationMapper">
|
||||
|
||||
<resultMap type="UsdtUserSettlementConfiguration" id="UsdtUserSettlementConfigurationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="commissionRate" column="commission_rate" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="deletedAt" column="deleted_at" />
|
||||
<result property="withdrawalFee" column="withdrawal_fee" />
|
||||
<result property="status" column="status" />
|
||||
<result property="extInfo" column="ext_info" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUsdtUserSettlementConfigurationVo">
|
||||
select id, user_id, commission_rate, created_at, updated_at, deleted_at, withdrawal_fee, status, ext_info, remark from usdt_user_settlement_configuration
|
||||
</sql>
|
||||
|
||||
<select id="selectUsdtUserSettlementConfigurationList" parameterType="UsdtUserSettlementConfiguration" resultMap="UsdtUserSettlementConfigurationResult">
|
||||
<include refid="selectUsdtUserSettlementConfigurationVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUsdtUserSettlementConfigurationById" parameterType="Long" resultMap="UsdtUserSettlementConfigurationResult">
|
||||
<include refid="selectUsdtUserSettlementConfigurationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUsdtUserSettlementConfiguration" parameterType="UsdtUserSettlementConfiguration" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into usdt_user_settlement_configuration
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="commissionRate != null">commission_rate,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="deletedAt != null">deleted_at,</if>
|
||||
<if test="withdrawalFee != null">withdrawal_fee,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="extInfo != null">ext_info,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="commissionRate != null">#{commissionRate},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="deletedAt != null">#{deletedAt},</if>
|
||||
<if test="withdrawalFee != null">#{withdrawalFee},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="extInfo != null">#{extInfo},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUsdtUserSettlementConfiguration" parameterType="UsdtUserSettlementConfiguration">
|
||||
update usdt_user_settlement_configuration
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="commissionRate != null">commission_rate = #{commissionRate},</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="withdrawalFee != null">withdrawal_fee = #{withdrawalFee},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="extInfo != null">ext_info = #{extInfo},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUsdtUserSettlementConfigurationById" parameterType="Long">
|
||||
delete from usdt_user_settlement_configuration where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUsdtUserSettlementConfigurationByIds" parameterType="String">
|
||||
delete from usdt_user_settlement_configuration where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -1,101 +0,0 @@
|
||||
<?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.UserAuthMapper">
|
||||
|
||||
<resultMap type="UserAuth" id="UserAuthResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="authType" column="auth_type" />
|
||||
<result property="name" column="name" />
|
||||
<result property="idNumber" column="id_number" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="authStatus" column="auth_status" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="reviewer" column="reviewer" />
|
||||
<result property="deletedAt" column="deleted_at" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUserAuthVo">
|
||||
select id, user_id, auth_type, name, id_number, company_name, auth_status, created_at, updated_at, reviewer, deleted_at from user_auth
|
||||
</sql>
|
||||
|
||||
<select id="selectUserAuthList" parameterType="UserAuth" resultMap="UserAuthResult">
|
||||
<include refid="selectUserAuthVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="authType != null "> and auth_type = #{authType}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="idNumber != null and idNumber != ''"> and id_number = #{idNumber}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="authStatus != null "> and auth_status = #{authStatus}</if>
|
||||
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
|
||||
<if test="reviewer != null and reviewer != ''"> and reviewer = #{reviewer}</if>
|
||||
<if test="deletedAt != null "> and deleted_at = #{deletedAt}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUserAuthById" parameterType="Long" resultMap="UserAuthResult">
|
||||
<include refid="selectUserAuthVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUserAuth" parameterType="UserAuth" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into user_auth
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="authType != null">auth_type,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="idNumber != null">id_number,</if>
|
||||
<if test="companyName != null">company_name,</if>
|
||||
<if test="authStatus != null">auth_status,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="reviewer != null">reviewer,</if>
|
||||
<if test="deletedAt != null">deleted_at,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="authType != null">#{authType},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="idNumber != null">#{idNumber},</if>
|
||||
<if test="companyName != null">#{companyName},</if>
|
||||
<if test="authStatus != null">#{authStatus},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="reviewer != null">#{reviewer},</if>
|
||||
<if test="deletedAt != null">#{deletedAt},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUserAuth" parameterType="UserAuth">
|
||||
update user_auth
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="authType != null">auth_type = #{authType},</if>
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="idNumber != null">id_number = #{idNumber},</if>
|
||||
<if test="companyName != null">company_name = #{companyName},</if>
|
||||
<if test="authStatus != null">auth_status = #{authStatus},</if>
|
||||
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
||||
<if test="reviewer != null">reviewer = #{reviewer},</if>
|
||||
<if test="deletedAt != null">deleted_at = #{deletedAt},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUserAuthById" parameterType="Long">
|
||||
delete from user_auth where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUserAuthByIds" parameterType="String">
|
||||
delete from user_auth where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -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>
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
<?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.Web3WalletMapper">
|
||||
|
||||
<resultMap type="Web3Wallet" id="Web3WalletResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="usdtBalance" column="usdt_balance" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="deletedAt" column="deleted_at" />
|
||||
<result property="trxBalance" column="trx_balance" />
|
||||
<result property="ethBalance" column="eth_balance" />
|
||||
<result property="password" column="password" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWeb3WalletVo">
|
||||
select id, usdt_balance, created_at, updated_at, deleted_at, trx_balance, eth_balance, password from web3_wallet
|
||||
</sql>
|
||||
|
||||
<select id="selectWeb3WalletList" parameterType="Web3Wallet" resultMap="Web3WalletResult">
|
||||
<include refid="selectWeb3WalletVo"/>
|
||||
<where>
|
||||
<if test="usdtBalance != null "> and usdt_balance = #{usdtBalance}</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="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>
|
||||
|
||||
<select id="selectWeb3WalletById" parameterType="Long" resultMap="Web3WalletResult">
|
||||
<include refid="selectWeb3WalletVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWeb3Wallet" parameterType="Web3Wallet">
|
||||
insert into web3_wallet
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="usdtBalance != null">usdt_balance,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="deletedAt != null">deleted_at,</if>
|
||||
<if test="trxBalance != null">trx_balance,</if>
|
||||
<if test="ethBalance != null">eth_balance,</if>
|
||||
<if test="password != null">password,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="usdtBalance != null">#{usdtBalance},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="deletedAt != null">#{deletedAt},</if>
|
||||
<if test="trxBalance != null">#{trxBalance},</if>
|
||||
<if test="ethBalance != null">#{ethBalance},</if>
|
||||
<if test="password != null">#{password},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWeb3Wallet" parameterType="Web3Wallet">
|
||||
update web3_wallet
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="usdtBalance != null">usdt_balance = #{usdtBalance},</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="trxBalance != null">trx_balance = #{trxBalance},</if>
|
||||
<if test="ethBalance != null">eth_balance = #{ethBalance},</if>
|
||||
<if test="password != null">password = #{password},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWeb3WalletById" parameterType="Long">
|
||||
delete from web3_wallet where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWeb3WalletByIds" parameterType="String">
|
||||
delete from web3_wallet where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user