|
|
|
|
@ -4,15 +4,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.manager.mapper.RecordDeliveryTaskImgMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="RecordDeliveryTaskImg" id="RecordDeliveryTaskImgResult">
|
|
|
|
|
<resultMap type="com.ruoyi.manager.domain.RecordDeliveryTaskImg" id="RecordDeliveryTaskImgResult">
|
|
|
|
|
<result property="deliveryImgId" column="delivery_img_id" />
|
|
|
|
|
<result property="taskCode" column="task_code" />
|
|
|
|
|
<result property="imgPath" column="img_path" />
|
|
|
|
|
<result property="crateTime" column="crate_time" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectRecordDeliveryTaskImgVo">
|
|
|
|
|
select delivery_img_id, task_code, img_path, crate_time from record_delivery_task_img
|
|
|
|
|
select delivery_img_id, task_code, img_path, create_time from record_delivery_task_img
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectRecordDeliveryTaskImgList" parameterType="RecordDeliveryTaskImg" resultMap="RecordDeliveryTaskImgResult">
|
|
|
|
|
@ -20,7 +20,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<where>
|
|
|
|
|
<if test="taskCode != null and taskCode != ''"> and task_code = #{taskCode}</if>
|
|
|
|
|
<if test="imgPath != null and imgPath != ''"> and img_path = #{imgPath}</if>
|
|
|
|
|
<if test="crateTime != null "> and crate_time = #{crateTime}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@ -34,12 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="taskCode != null">task_code,</if>
|
|
|
|
|
<if test="imgPath != null">img_path,</if>
|
|
|
|
|
<if test="crateTime != null">crate_time,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="taskCode != null">#{taskCode},</if>
|
|
|
|
|
<if test="imgPath != null">#{imgPath},</if>
|
|
|
|
|
<if test="crateTime != null">#{crateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
@ -48,7 +45,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="taskCode != null">task_code = #{taskCode},</if>
|
|
|
|
|
<if test="imgPath != null">img_path = #{imgPath},</if>
|
|
|
|
|
<if test="crateTime != null">crate_time = #{crateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where delivery_img_id = #{deliveryImgId}
|
|
|
|
|
</update>
|
|
|
|
|
|