支付
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
<?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.ticket.mapper.ZdyTicketOtaLogMapper">
|
||||
|
||||
<resultMap type="ZdyTicketOtaLog" id="ZdyTicketOtaLogResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="otaTicketId" column="ota_ticket_id"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="opinion" column="opinion"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZdyTicketOtaLogVo">
|
||||
select id, ota_ticket_id, status, opinion, create_time, create_by
|
||||
from zdy_ticket_ota_log
|
||||
</sql>
|
||||
|
||||
<select id="selectZdyTicketOtaLogList" parameterType="ZdyTicketOtaLog" resultMap="ZdyTicketOtaLogResult">
|
||||
<include refid="selectZdyTicketOtaLogVo"/>
|
||||
<where>
|
||||
<if test="otaTicketId != null ">
|
||||
and ota_ticket_id = #{otaTicketId}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="opinion != null and opinion != ''">
|
||||
and opinion = #{opinion}
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectZdyTicketOtaLogById" parameterType="Long"
|
||||
resultMap="ZdyTicketOtaLogResult">
|
||||
<include refid="selectZdyTicketOtaLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertZdyTicketOtaLog" parameterType="ZdyTicketOtaLog">
|
||||
insert into zdy_ticket_ota_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,
|
||||
</if>
|
||||
<if test="otaTicketId != null">ota_ticket_id,
|
||||
</if>
|
||||
<if test="status != null">status,
|
||||
</if>
|
||||
<if test="opinion != null">opinion,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},
|
||||
</if>
|
||||
<if test="otaTicketId != null">#{otaTicketId},
|
||||
</if>
|
||||
<if test="status != null">#{status},
|
||||
</if>
|
||||
<if test="opinion != null">#{opinion},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZdyTicketOtaLog" parameterType="ZdyTicketOtaLog">
|
||||
update zdy_ticket_ota_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="otaTicketId != null">ota_ticket_id =
|
||||
#{otaTicketId},
|
||||
</if>
|
||||
<if test="status != null">status =
|
||||
#{status},
|
||||
</if>
|
||||
<if test="opinion != null">opinion =
|
||||
#{opinion},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZdyTicketOtaLogById" parameterType="Long">
|
||||
delete
|
||||
from zdy_ticket_ota_log
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZdyTicketOtaLogByIds" parameterType="String">
|
||||
delete from zdy_ticket_ota_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteZdyTicketOtaLogByOtaTicketIds" parameterType="String">
|
||||
delete from zdy_ticket_ota_log where ota_ticket_id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user