From f0f98d653bab4ec044a0e8e2a3bfc9b0ceccd99d Mon Sep 17 00:00:00 2001 From: zhangjian <zhangjianrock@163.com> Date: 星期一, 29 五月 2023 17:10:32 +0800 Subject: [PATCH] 视频巡检任务 --- ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml b/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml index f06edcc..ab97e71 100644 --- a/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml +++ b/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml @@ -45,12 +45,10 @@ <if test="taskName != null and taskName != ''"> and task_name like '%'||#{taskName}||'%'</if> <if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if> <if test="endTime != null and endTime != ''"> and end_time = #{endTime}</if> - <if test="repeatPeriod != null and repeatPeriod != ''"> and repeat_period = #{repeatPeriod}</if> <if test="inspectMode != null and inspectMode != ''"> and inspect_mode = #{inspectMode}</if> <if test="menualSwitch != null and menualSwitch != ''"> and menual_switch = #{menualSwitch}</if> - <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> - <if test="userId != null and userId != ''"> and user_id = #{userId}</if> </where> + ORDER BY start_time desc </select> <select id="selectArdVideoInspectTaskById" parameterType="String" resultMap="ArdVideoInspectTaskArdVideoInspectTaskStepResult"> @@ -137,9 +135,9 @@ </delete> <insert id="batchArdVideoInspectTaskStep"> - insert into ard_video_inspect_task_step( id, order_number, camera_id, recording_time, well_id, task_id, dept_id, user_id) values + insert into ard_video_inspect_task_step( order_number, camera_id, recording_time, well_id, task_id, dept_id, user_id) values <foreach item="item" index="index" collection="list" separator=","> - ( #{item.id}, #{item.orderNumber}, #{item.cameraId}, #{item.recordingTime}, #{item.wellId}, #{item.taskId}, #{item.deptId}, #{item.userId}) + ( #{item.orderNumber}, #{item.cameraId}, #{item.recordingTime}, #{item.wellId}, #{item.taskId}, #{item.deptId}, #{item.userId}) </foreach> </insert> </mapper> \ No newline at end of file -- Gitblit v1.9.3