代付订单

This commit is contained in:
lu7213 committed 2026-10-17 12:06:14 -04:00
1 parent d81820c74f
commit 1eca7a77bc
15 files changed
+2200 -130

No files matched your search

@@ -0,0 +1,181 @@
<?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.UsdtPayoutOrderMapper">
<resultMap type="UsdtPayoutOrder" id="UsdtPayoutOrderResult">
<result property="id" column="id" />
<result property="tradeId" column="trade_id" />
<result property="orderId" column="order_id" />
<result property="appId" column="app_id" />
<result property="userId" column="user_id" />
<result property="currency" column="currency" />
<result property="amount" column="amount" />
<result property="feeCurrency" column="fee_currency" />
<result property="feeAmount" column="fee_amount" />
<result property="toAddress" column="to_address" />
<result property="status" column="status" />
<result property="auditType" column="audit_type" />
<result property="auditorId" column="auditor_id" />
<result property="auditRemark" column="audit_remark" />
<result property="auditedAt" column="audited_at" />
<result property="blockTransactionId" column="block_transaction_id" />
<result property="executeError" column="execute_error" />
<result property="executeCount" column="execute_count" />
<result property="executedAt" column="executed_at" />
<result property="confirmedAt" column="confirmed_at" />
<result property="notifyUrl" column="notify_url" />
<result property="redirectUrl" column="redirect_url" />
<result property="callbackNum" column="callback_num" />
<result property="callbackConfirm" column="callback_confirm" />
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
<result property="deletedAt" column="deleted_at" />
</resultMap>
<sql id="selectUsdtPayoutOrderVo">
select id, trade_id, order_id, app_id, user_id, currency, amount, fee_currency, fee_amount, to_address, status, audit_type, auditor_id, audit_remark, audited_at, block_transaction_id, execute_error, execute_count, executed_at, confirmed_at, notify_url, redirect_url, callback_num, callback_confirm, created_at, updated_at, deleted_at from usdt_payout_order
</sql>
<select id="selectUsdtPayoutOrderList" parameterType="UsdtPayoutOrder" resultMap="UsdtPayoutOrderResult">
<include refid="selectUsdtPayoutOrderVo"/>
<where>
<if test="tradeId != null and tradeId != ''"> and trade_id = #{tradeId}</if>
<if test="orderId != null and orderId != ''"> and order_id = #{orderId}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="currency != null and currency != ''"> and currency = #{currency}</if>
<if test="amount != null "> and amount = #{amount}</if>
<if test="feeCurrency != null and feeCurrency != ''"> and fee_currency = #{feeCurrency}</if>
<if test="feeAmount != null "> and fee_amount = #{feeAmount}</if>
<if test="toAddress != null and toAddress != ''"> and to_address = #{toAddress}</if>
<if test="status != null "> and status = #{status}</if>
<if test="auditType != null and auditType != ''"> and audit_type = #{auditType}</if>
<if test="auditorId != null and auditorId != ''"> and auditor_id = #{auditorId}</if>
<if test="auditRemark != null and auditRemark != ''"> and audit_remark = #{auditRemark}</if>
<if test="auditedAt != null "> and audited_at = #{auditedAt}</if>
<if test="blockTransactionId != null and blockTransactionId != ''"> and block_transaction_id = #{blockTransactionId}</if>
<if test="executeError != null and executeError != ''"> and execute_error = #{executeError}</if>
<if test="executeCount != null "> and execute_count = #{executeCount}</if>
<if test="executedAt != null "> and executed_at = #{executedAt}</if>
<if test="confirmedAt != null "> and confirmed_at = #{confirmedAt}</if>
<if test="notifyUrl != null and notifyUrl != ''"> and notify_url = #{notifyUrl}</if>
<if test="redirectUrl != null and redirectUrl != ''"> and redirect_url = #{redirectUrl}</if>
<if test="callbackNum != null "> and callback_num = #{callbackNum}</if>
<if test="callbackConfirm != null "> and callback_confirm = #{callbackConfirm}</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>
</where>
</select>
<select id="selectUsdtPayoutOrderById" parameterType="Long" resultMap="UsdtPayoutOrderResult">
<include refid="selectUsdtPayoutOrderVo"/>
where id = #{id}
</select>
<insert id="insertUsdtPayoutOrder" parameterType="UsdtPayoutOrder" useGeneratedKeys="true" keyProperty="id">
insert into usdt_payout_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="tradeId != null and tradeId != ''">trade_id,</if>
<if test="orderId != null and orderId != ''">order_id,</if>
<if test="appId != null">app_id,</if>
<if test="userId != null">user_id,</if>
<if test="currency != null and currency != ''">currency,</if>
<if test="amount != null">amount,</if>
<if test="feeCurrency != null and feeCurrency != ''">fee_currency,</if>
<if test="feeAmount != null">fee_amount,</if>
<if test="toAddress != null and toAddress != ''">to_address,</if>
<if test="status != null">status,</if>
<if test="auditType != null">audit_type,</if>
<if test="auditorId != null">auditor_id,</if>
<if test="auditRemark != null">audit_remark,</if>
<if test="auditedAt != null">audited_at,</if>
<if test="blockTransactionId != null">block_transaction_id,</if>
<if test="executeError != null">execute_error,</if>
<if test="executeCount != null">execute_count,</if>
<if test="executedAt != null">executed_at,</if>
<if test="confirmedAt != null">confirmed_at,</if>
<if test="notifyUrl != null and notifyUrl != ''">notify_url,</if>
<if test="redirectUrl != null">redirect_url,</if>
<if test="callbackNum != null">callback_num,</if>
<if test="callbackConfirm != null">callback_confirm,</if>
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
<if test="deletedAt != null">deleted_at,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="tradeId != null and tradeId != ''">#{tradeId},</if>
<if test="orderId != null and orderId != ''">#{orderId},</if>
<if test="appId != null">#{appId},</if>
<if test="userId != null">#{userId},</if>
<if test="currency != null and currency != ''">#{currency},</if>
<if test="amount != null">#{amount},</if>
<if test="feeCurrency != null and feeCurrency != ''">#{feeCurrency},</if>
<if test="feeAmount != null">#{feeAmount},</if>
<if test="toAddress != null and toAddress != ''">#{toAddress},</if>
<if test="status != null">#{status},</if>
<if test="auditType != null">#{auditType},</if>
<if test="auditorId != null">#{auditorId},</if>
<if test="auditRemark != null">#{auditRemark},</if>
<if test="auditedAt != null">#{auditedAt},</if>
<if test="blockTransactionId != null">#{blockTransactionId},</if>
<if test="executeError != null">#{executeError},</if>
<if test="executeCount != null">#{executeCount},</if>
<if test="executedAt != null">#{executedAt},</if>
<if test="confirmedAt != null">#{confirmedAt},</if>
<if test="notifyUrl != null and notifyUrl != ''">#{notifyUrl},</if>
<if test="redirectUrl != null">#{redirectUrl},</if>
<if test="callbackNum != null">#{callbackNum},</if>
<if test="callbackConfirm != null">#{callbackConfirm},</if>
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
<if test="deletedAt != null">#{deletedAt},</if>
</trim>
</insert>
<update id="updateUsdtPayoutOrder" parameterType="UsdtPayoutOrder">
update usdt_payout_order
<trim prefix="SET" suffixOverrides=",">
<if test="tradeId != null and tradeId != ''">trade_id = #{tradeId},</if>
<if test="orderId != null and orderId != ''">order_id = #{orderId},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="currency != null and currency != ''">currency = #{currency},</if>
<if test="amount != null">amount = #{amount},</if>
<if test="feeCurrency != null and feeCurrency != ''">fee_currency = #{feeCurrency},</if>
<if test="feeAmount != null">fee_amount = #{feeAmount},</if>
<if test="toAddress != null and toAddress != ''">to_address = #{toAddress},</if>
<if test="status != null">status = #{status},</if>
<if test="auditType != null">audit_type = #{auditType},</if>
<if test="auditorId != null">auditor_id = #{auditorId},</if>
<if test="auditRemark != null">audit_remark = #{auditRemark},</if>
<if test="auditedAt != null">audited_at = #{auditedAt},</if>
<if test="blockTransactionId != null">block_transaction_id = #{blockTransactionId},</if>
<if test="executeError != null">execute_error = #{executeError},</if>
<if test="executeCount != null">execute_count = #{executeCount},</if>
<if test="executedAt != null">executed_at = #{executedAt},</if>
<if test="confirmedAt != null">confirmed_at = #{confirmedAt},</if>
<if test="notifyUrl != null and notifyUrl != ''">notify_url = #{notifyUrl},</if>
<if test="redirectUrl != null">redirect_url = #{redirectUrl},</if>
<if test="callbackNum != null">callback_num = #{callbackNum},</if>
<if test="callbackConfirm != null">callback_confirm = #{callbackConfirm},</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>
</trim>
where id = #{id}
</update>
<delete id="deleteUsdtPayoutOrderById" parameterType="Long">
delete from usdt_payout_order where id = #{id}
</delete>
<delete id="deleteUsdtPayoutOrderByIds" parameterType="String">
delete from usdt_payout_order where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>