139 lines
4.8 KiB
XML
139 lines
4.8 KiB
XML
<?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.scenic.mapper.ScenicSpotAudioOrdelLogMapper">
|
|
|
|
<resultMap type="ScenicSpotAudioOrdelLog" id="ScenicSpotAudioOrdelLogResult">
|
|
<result property="id" column="id"/>
|
|
<result property="orderId" column="order_id"/>
|
|
<result property="content" column="content"/>
|
|
<result property="status" column="status"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="type" column="type"/>
|
|
<result property="operate" column="operate"/>
|
|
<result property="memo" column="memo"/>
|
|
</resultMap>
|
|
|
|
<sql id="selectScenicSpotAudioOrdelLogVo">
|
|
select id, order_id, content, status, create_by, create_time, type, operate,memo
|
|
from zdy_scenic_spot_audio_ordel_log
|
|
</sql>
|
|
|
|
<select id="selectScenicSpotAudioOrdelLogList" parameterType="ScenicSpotAudioOrdelLog"
|
|
resultMap="ScenicSpotAudioOrdelLogResult">
|
|
<include refid="selectScenicSpotAudioOrdelLogVo"/>
|
|
<where>
|
|
<if test="orderId != null ">
|
|
and order_id = #{orderId}
|
|
</if>
|
|
<if test="content != null and content != ''">
|
|
and content = #{content}
|
|
</if>
|
|
<if test="status != null and status != ''">
|
|
and status = #{status}
|
|
</if>
|
|
<if test="type !=null and type!=''">
|
|
and type = #{type}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectScenicSpotAudioOrdelLogById" parameterType="Long"
|
|
resultMap="ScenicSpotAudioOrdelLogResult">
|
|
<include refid="selectScenicSpotAudioOrdelLogVo"/>
|
|
where id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertScenicSpotAudioOrdelLog" parameterType="ScenicSpotAudioOrdelLog" useGeneratedKeys="true"
|
|
keyProperty="id">
|
|
insert into zdy_scenic_spot_audio_ordel_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="orderId != null">order_id,
|
|
</if>
|
|
<if test="content != null">content,
|
|
</if>
|
|
<if test="status != null">status,
|
|
</if>
|
|
<if test="createBy != null">create_by,
|
|
</if>
|
|
<if test="createTime != null">create_time,
|
|
</if>
|
|
<if test="type != null">type,
|
|
</if>
|
|
<if test="operate != null">operate,
|
|
</if>
|
|
<if test="memo != null">memo,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="orderId != null">#{orderId},
|
|
</if>
|
|
<if test="content != null">#{content},
|
|
</if>
|
|
<if test="status != null">#{status},
|
|
</if>
|
|
<if test="createBy != null">#{createBy},
|
|
</if>
|
|
<if test="createTime != null">#{createTime},
|
|
</if>
|
|
<if test="type != null">#{type},
|
|
</if>
|
|
<if test="operate != null">#{operate},
|
|
</if>
|
|
<if test="memo != null">#{memo},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateScenicSpotAudioOrdelLog" parameterType="ScenicSpotAudioOrdelLog">
|
|
update zdy_scenic_spot_audio_ordel_log
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="orderId != null">order_id =
|
|
#{orderId},
|
|
</if>
|
|
<if test="content != null">content =
|
|
#{content},
|
|
</if>
|
|
<if test="status != null">status =
|
|
#{status},
|
|
</if>
|
|
<if test="createBy != null">create_by =
|
|
#{createBy},
|
|
</if>
|
|
<if test="createTime != null">create_time =
|
|
#{createTime},
|
|
</if>
|
|
<if test="type != null">type =
|
|
#{type},
|
|
</if>
|
|
<if test="operate != null">operate =
|
|
#{operate},
|
|
</if>
|
|
<if test="memo != null">memo =
|
|
#{memo},
|
|
</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteScenicSpotAudioOrdelLogById" parameterType="Long">
|
|
delete
|
|
from zdy_scenic_spot_audio_ordel_log
|
|
where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteScenicSpotAudioOrdelLogByIds" parameterType="String">
|
|
delete from zdy_scenic_spot_audio_ordel_log where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
<delete id="deleteScenicSpotAudioOrdelLogByOrderId">
|
|
delete
|
|
from zdy_scenic_spot_audio_ordel_log
|
|
where order_id = #{orderId}
|
|
</delete>
|
|
</mapper>
|