177 lines
6.2 KiB
XML
177 lines
6.2 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.wcsc.mapper.ZdyWcscOrderExpressLogMapper">
|
||
|
|
||
|
<resultMap type="ZdyWcscOrderExpressLog" id="ZdyWcscOrderExpressLogResult">
|
||
|
<result property="id" column="id"/>
|
||
|
<result property="userId" column="user_id"/>
|
||
|
<result property="orderId" column="order_id"/>
|
||
|
<result property="orderExpressId" column="order_express_id"/>
|
||
|
<result property="status" column="status"/>
|
||
|
<result property="location" column="location"/>
|
||
|
<result property="content" column="content"/>
|
||
|
<result property="changedate" column="changedate"/>
|
||
|
<result property="createTime" column="create_time"/>
|
||
|
<result property="updateTime" column="update_time"/>
|
||
|
<result property="createBy" column="create_by"/>
|
||
|
<result property="updateBy" column="update_by"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectZdyWcscOrderExpressLogVo">
|
||
|
select id,
|
||
|
user_id,
|
||
|
order_id,
|
||
|
order_express_id,
|
||
|
status,
|
||
|
location,
|
||
|
content,
|
||
|
changedate,
|
||
|
create_time,
|
||
|
update_time,
|
||
|
create_by,
|
||
|
update_by
|
||
|
from zdy_wcsc_order_express_log
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectZdyWcscOrderExpressLogList" parameterType="ZdyWcscOrderExpressLog"
|
||
|
resultMap="ZdyWcscOrderExpressLogResult">
|
||
|
<include refid="selectZdyWcscOrderExpressLogVo"/>
|
||
|
<where>
|
||
|
<if test="userId != null ">
|
||
|
and user_id = #{userId}
|
||
|
</if>
|
||
|
<if test="orderId != null ">
|
||
|
and order_id = #{orderId}
|
||
|
</if>
|
||
|
<if test="orderExpressId != null ">
|
||
|
and order_express_id = #{orderExpressId}
|
||
|
</if>
|
||
|
<if test="status != null ">
|
||
|
and status = #{status}
|
||
|
</if>
|
||
|
<if test="location != null and location != ''">
|
||
|
and location = #{location}
|
||
|
</if>
|
||
|
<if test="content != null and content != ''">
|
||
|
and content = #{content}
|
||
|
</if>
|
||
|
<if test="changedate != null ">
|
||
|
and changedate = #{changedate}
|
||
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectZdyWcscOrderExpressLogById" parameterType="Long"
|
||
|
resultMap="ZdyWcscOrderExpressLogResult">
|
||
|
<include refid="selectZdyWcscOrderExpressLogVo"/>
|
||
|
where id = #{id}
|
||
|
</select>
|
||
|
|
||
|
<insert id="insertZdyWcscOrderExpressLog" parameterType="ZdyWcscOrderExpressLog" useGeneratedKeys="true"
|
||
|
keyProperty="id">
|
||
|
insert into zdy_wcsc_order_express_log
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="userId != null">user_id,
|
||
|
</if>
|
||
|
<if test="orderId != null">order_id,
|
||
|
</if>
|
||
|
<if test="orderExpressId != null">order_express_id,
|
||
|
</if>
|
||
|
<if test="status != null">status,
|
||
|
</if>
|
||
|
<if test="location != null">location,
|
||
|
</if>
|
||
|
<if test="content != null">content,
|
||
|
</if>
|
||
|
<if test="changedate != null">changedate,
|
||
|
</if>
|
||
|
<if test="createTime != null">create_time,
|
||
|
</if>
|
||
|
<if test="updateTime != null">update_time,
|
||
|
</if>
|
||
|
<if test="createBy != null">create_by,
|
||
|
</if>
|
||
|
<if test="updateBy != null">update_by,
|
||
|
</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="userId != null">#{userId},
|
||
|
</if>
|
||
|
<if test="orderId != null">#{orderId},
|
||
|
</if>
|
||
|
<if test="orderExpressId != null">#{orderExpressId},
|
||
|
</if>
|
||
|
<if test="status != null">#{status},
|
||
|
</if>
|
||
|
<if test="location != null">#{location},
|
||
|
</if>
|
||
|
<if test="content != null">#{content},
|
||
|
</if>
|
||
|
<if test="changedate != null">#{changedate},
|
||
|
</if>
|
||
|
<if test="createTime != null">#{createTime},
|
||
|
</if>
|
||
|
<if test="updateTime != null">#{updateTime},
|
||
|
</if>
|
||
|
<if test="createBy != null">#{createBy},
|
||
|
</if>
|
||
|
<if test="updateBy != null">#{updateBy},
|
||
|
</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateZdyWcscOrderExpressLog" parameterType="ZdyWcscOrderExpressLog">
|
||
|
update zdy_wcsc_order_express_log
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="userId != null">user_id =
|
||
|
#{userId},
|
||
|
</if>
|
||
|
<if test="orderId != null">order_id =
|
||
|
#{orderId},
|
||
|
</if>
|
||
|
<if test="orderExpressId != null">order_express_id =
|
||
|
#{orderExpressId},
|
||
|
</if>
|
||
|
<if test="status != null">status =
|
||
|
#{status},
|
||
|
</if>
|
||
|
<if test="location != null">location =
|
||
|
#{location},
|
||
|
</if>
|
||
|
<if test="content != null">content =
|
||
|
#{content},
|
||
|
</if>
|
||
|
<if test="changedate != null">changedate =
|
||
|
#{changedate},
|
||
|
</if>
|
||
|
<if test="createTime != null">create_time =
|
||
|
#{createTime},
|
||
|
</if>
|
||
|
<if test="updateTime != null">update_time =
|
||
|
#{updateTime},
|
||
|
</if>
|
||
|
<if test="createBy != null">create_by =
|
||
|
#{createBy},
|
||
|
</if>
|
||
|
<if test="updateBy != null">update_by =
|
||
|
#{updateBy},
|
||
|
</if>
|
||
|
</trim>
|
||
|
where id = #{id}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteZdyWcscOrderExpressLogById" parameterType="Long">
|
||
|
delete
|
||
|
from zdy_wcsc_order_express_log
|
||
|
where id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteZdyWcscOrderExpressLogByIds" parameterType="String">
|
||
|
delete from zdy_wcsc_order_express_log where id in
|
||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||
|
#{id}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
</mapper>
|