支付
This commit is contained in:
@@ -0,0 +1,180 @@
|
||||
<?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.zhwl.ota.douyin.mapper.ZdyTicketOtaOrderUseLogMapper">
|
||||
|
||||
<resultMap type="ZdyTicketOtaOrderUseLog" id="ZdyTicketOtaOrderUseLogResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="orderCode" column="order_code"/>
|
||||
<result property="otaCertificateId" column="ota_certificate_id"/>
|
||||
<result property="otaVerifyId" column="ota_verify_id"/>
|
||||
<result property="verificationCode" column="verification_code"/>
|
||||
<result property="result" column="result"/>
|
||||
<result property="resultContent" column="result_content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="verifyToken" column="verify_token"/>
|
||||
<result property="orderPrepayId" column="order_prepay_id"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZdyTicketOtaOrderUseLogVo">
|
||||
select id, order_id, order_code, ota_certificate_id, ota_verify_id, verification_code, result, result_content,create_time,verify_token,order_prepay_id
|
||||
from zdy_ticket_ota_order_use_log
|
||||
</sql>
|
||||
|
||||
<select id="selectZdyTicketOtaOrderUseLogList" parameterType="ZdyTicketOtaOrderUseLog" resultMap="ZdyTicketOtaOrderUseLogResult">
|
||||
<include refid="selectZdyTicketOtaOrderUseLogVo"/>
|
||||
<where>
|
||||
<if test="orderId != null ">
|
||||
and order_id = #{orderId}
|
||||
</if>
|
||||
<if test="orderCode != null and orderCode != ''">
|
||||
and order_code = #{orderCode}
|
||||
</if>
|
||||
<if test="otaCertificateId != null and otaCertificateId != ''">
|
||||
and ota_certificate_id = #{otaCertificateId}
|
||||
</if>
|
||||
<if test="otaVerifyId != null and otaVerifyId != ''">
|
||||
and ota_verify_id = #{otaVerifyId}
|
||||
</if>
|
||||
<if test="verificationCode != null and verificationCode != ''">
|
||||
and verification_code = #{verificationCode}
|
||||
</if>
|
||||
<if test="result != null ">
|
||||
and result = #{result}
|
||||
</if>
|
||||
<if test="resultContent != null and resultContent != ''">
|
||||
and result_content = #{resultContent}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectZdyTicketOtaOrderUseLogById" parameterType="Long"
|
||||
resultMap="ZdyTicketOtaOrderUseLogResult">
|
||||
<include refid="selectZdyTicketOtaOrderUseLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="selectByIdVerificationCode" parameterType="String"
|
||||
resultMap="ZdyTicketOtaOrderUseLogResult">
|
||||
<include refid="selectZdyTicketOtaOrderUseLogVo"/>
|
||||
where FIND_IN_SET(#{verificationCode},verification_code)
|
||||
</select>
|
||||
<select id="selectByOrderCode" resultType="java.lang.String">
|
||||
select ota_verify_id from zdy_ticket_ota_order_use_log where order_code = #{orderCode}
|
||||
</select>
|
||||
<select id="selectByVerificationCodes" resultMap="ZdyTicketOtaOrderUseLogResult">
|
||||
<include refid="selectZdyTicketOtaOrderUseLogVo"/>
|
||||
where verification_code in
|
||||
<foreach collection="list" item="verificationCode" open="(" separator="," close=")">
|
||||
#{verificationCode}
|
||||
</foreach>
|
||||
|
||||
</select>
|
||||
<select id="selectOtaUseLogByOrderCode" resultMap="ZdyTicketOtaOrderUseLogResult">
|
||||
<include refid="selectZdyTicketOtaOrderUseLogVo"/>
|
||||
where order_code = #{orderCode} group by id desc
|
||||
</select>
|
||||
<insert id="insertZdyTicketOtaOrderUseLog" parameterType="ZdyTicketOtaOrderUseLog" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into zdy_ticket_ota_order_use_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id,
|
||||
</if>
|
||||
<if test="orderCode != null">order_code,
|
||||
</if>
|
||||
<if test="otaCertificateId != null">ota_certificate_id,
|
||||
</if>
|
||||
<if test="otaVerifyId != null">ota_verify_id,
|
||||
</if>
|
||||
<if test="verificationCode != null and verificationCode != ''">verification_code,
|
||||
</if>
|
||||
<if test="result != null">result,
|
||||
</if>
|
||||
<if test="resultContent != null">result_content,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="verifyToken != null">verify_token,
|
||||
</if>
|
||||
<if test="orderPrepayId != null">order_prepay_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">#{orderId},
|
||||
</if>
|
||||
<if test="orderCode != null">#{orderCode},
|
||||
</if>
|
||||
<if test="otaCertificateId != null">#{otaCertificateId},
|
||||
</if>
|
||||
<if test="otaVerifyId != null">#{otaVerifyId},
|
||||
</if>
|
||||
<if test="verificationCode != null and verificationCode != ''">#{verificationCode},
|
||||
</if>
|
||||
<if test="result != null">#{result},
|
||||
</if>
|
||||
<if test="resultContent != null">#{resultContent},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="verifyToken != null">#{verifyToken},
|
||||
</if>
|
||||
<if test="orderPrepayId != null">#{orderPrepayId},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZdyTicketOtaOrderUseLog" parameterType="ZdyTicketOtaOrderUseLog">
|
||||
update zdy_ticket_ota_order_use_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id =
|
||||
#{orderId},
|
||||
</if>
|
||||
<if test="orderCode != null">order_code =
|
||||
#{orderCode},
|
||||
</if>
|
||||
<if test="otaCertificateId != null">ota_certificate_id =
|
||||
#{otaCertificateId},
|
||||
</if>
|
||||
<if test="otaVerifyId != null">ota_verify_id =
|
||||
#{otaVerifyId},
|
||||
</if>
|
||||
<if test="verificationCode != null and verificationCode != ''">verification_code =
|
||||
#{verificationCode},
|
||||
</if>
|
||||
<if test="result != null">result =
|
||||
#{result},
|
||||
</if>
|
||||
<if test="resultContent != null">result_content =
|
||||
#{resultContent},
|
||||
</if>
|
||||
<if test="verifyToken != null">verify_token =
|
||||
#{verifyToken},
|
||||
</if>
|
||||
<if test="orderPrepayId != null">order_prepay_id =
|
||||
#{orderPrepayId},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZdyTicketOtaOrderUseLogById" parameterType="Long">
|
||||
delete from zdy_ticket_ota_order_use_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZdyTicketOtaOrderUseLogByIds" parameterType="String">
|
||||
delete from zdy_ticket_ota_order_use_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteByVerifyCodes">
|
||||
delete from zdy_ticket_ota_order_use_log where verification_code in
|
||||
<foreach item="verificationCode" collection="list" open="(" separator="," close=")">
|
||||
#{verificationCode}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteByOrderId">
|
||||
delete from zdy_ticket_ota_order_use_log where order_id =#{orderId}
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user