添加代理记录相关表
This commit is contained in:
1 parent
b2ab430eb6
commit
81febe2c56
14 files changed
+1644
No files matched your search
@@ -0,0 +1,88 @@
|
||||
<?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.UsdtDelegationToOtherMapper">
|
||||
|
||||
<resultMap type="UsdtDelegationToOther" id="UsdtDelegationToOtherResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="token" column="token" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="targetToken" column="target_token" />
|
||||
<result property="resourceAmount" column="resource_amount" />
|
||||
<result property="trxNum" column="trx_num" />
|
||||
<result property="type" column="type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUsdtDelegationToOtherVo">
|
||||
select id, token, created_at, updated_at, target_token, resource_amount, trx_num, type from usdt_delegation_to_other
|
||||
</sql>
|
||||
|
||||
<select id="selectUsdtDelegationToOtherList" parameterType="UsdtDelegationToOther" resultMap="UsdtDelegationToOtherResult">
|
||||
<include refid="selectUsdtDelegationToOtherVo"/>
|
||||
<where>
|
||||
<if test="token != null and token != ''"> and token = #{token}</if>
|
||||
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
|
||||
<if test="targetToken != null and targetToken != ''"> and target_token = #{targetToken}</if>
|
||||
<if test="resourceAmount != null "> and resource_amount = #{resourceAmount}</if>
|
||||
<if test="trxNum != null "> and trx_num = #{trxNum}</if>
|
||||
<if test="type != null "> and type = #{type}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUsdtDelegationToOtherById" parameterType="Long" resultMap="UsdtDelegationToOtherResult">
|
||||
<include refid="selectUsdtDelegationToOtherVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUsdtDelegationToOther" parameterType="UsdtDelegationToOther">
|
||||
insert into usdt_delegation_to_other
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="token != null">token,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="targetToken != null">target_token,</if>
|
||||
<if test="resourceAmount != null">resource_amount,</if>
|
||||
<if test="trxNum != null">trx_num,</if>
|
||||
<if test="type != null">type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="token != null">#{token},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="targetToken != null">#{targetToken},</if>
|
||||
<if test="resourceAmount != null">#{resourceAmount},</if>
|
||||
<if test="trxNum != null">#{trxNum},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUsdtDelegationToOther" parameterType="UsdtDelegationToOther">
|
||||
update usdt_delegation_to_other
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="token != null">token = #{token},</if>
|
||||
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
||||
<if test="targetToken != null">target_token = #{targetToken},</if>
|
||||
<if test="resourceAmount != null">resource_amount = #{resourceAmount},</if>
|
||||
<if test="trxNum != null">trx_num = #{trxNum},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUsdtDelegationToOtherById" parameterType="Long">
|
||||
delete from usdt_delegation_to_other where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUsdtDelegationToOtherByIds" parameterType="String">
|
||||
delete from usdt_delegation_to_other where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,88 @@
|
||||
<?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.UsdtOtherToDelegationMapper">
|
||||
|
||||
<resultMap type="UsdtOtherToDelegation" id="UsdtOtherToDelegationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="token" column="token" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="fromToken" column="from_token" />
|
||||
<result property="resourceAmount" column="resource_amount" />
|
||||
<result property="trxNum" column="trx_num" />
|
||||
<result property="type" column="type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUsdtOtherToDelegationVo">
|
||||
select id, token, created_at, updated_at, from_token, resource_amount, trx_num, type from usdt_other_to_delegation
|
||||
</sql>
|
||||
|
||||
<select id="selectUsdtOtherToDelegationList" parameterType="UsdtOtherToDelegation" resultMap="UsdtOtherToDelegationResult">
|
||||
<include refid="selectUsdtOtherToDelegationVo"/>
|
||||
<where>
|
||||
<if test="token != null and token != ''"> and token = #{token}</if>
|
||||
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
|
||||
<if test="fromToken != null and fromToken != ''"> and from_token = #{fromToken}</if>
|
||||
<if test="resourceAmount != null "> and resource_amount = #{resourceAmount}</if>
|
||||
<if test="trxNum != null "> and trx_num = #{trxNum}</if>
|
||||
<if test="type != null "> and type = #{type}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUsdtOtherToDelegationById" parameterType="Long" resultMap="UsdtOtherToDelegationResult">
|
||||
<include refid="selectUsdtOtherToDelegationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUsdtOtherToDelegation" parameterType="UsdtOtherToDelegation">
|
||||
insert into usdt_other_to_delegation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="token != null">token,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="fromToken != null">from_token,</if>
|
||||
<if test="resourceAmount != null">resource_amount,</if>
|
||||
<if test="trxNum != null">trx_num,</if>
|
||||
<if test="type != null">type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="token != null">#{token},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="fromToken != null">#{fromToken},</if>
|
||||
<if test="resourceAmount != null">#{resourceAmount},</if>
|
||||
<if test="trxNum != null">#{trxNum},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUsdtOtherToDelegation" parameterType="UsdtOtherToDelegation">
|
||||
update usdt_other_to_delegation
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="token != null">token = #{token},</if>
|
||||
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
||||
<if test="fromToken != null">from_token = #{fromToken},</if>
|
||||
<if test="resourceAmount != null">resource_amount = #{resourceAmount},</if>
|
||||
<if test="trxNum != null">trx_num = #{trxNum},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUsdtOtherToDelegationById" parameterType="Long">
|
||||
delete from usdt_other_to_delegation where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUsdtOtherToDelegationByIds" parameterType="String">
|
||||
delete from usdt_other_to_delegation where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user