From 690514a1445d8925f62f9c73e9ed563f647a00c7 Mon Sep 17 00:00:00 2001
From: zhangjian <zhangjianrock@163.com>
Date: 星期二, 30 五月 2023 09:55:11 +0800
Subject: [PATCH] 视频巡检任务 重新生成表

---
 ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml b/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
index ba8f535..19a7263 100644
--- a/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
+++ b/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
@@ -16,12 +16,12 @@
         <result property="cameraId"    column="camera_id"    />
         <result property="channel"    column="channel"    />
         <result property="currentStepId"    column="current_step_id"    />
+        <result property="currentStepStartTime"    column="current_step_start_time"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateBy"    column="update_by"    />
         <result property="updateTime"    column="update_time"    />
         <result property="deptId"    column="dept_id"    />
         <result property="userId"    column="user_id"    />
-        <result property="currentStopStartTime"    column="current_stop_start_time"    />
     </resultMap>
 
     <resultMap id="ArdVideoInspectTaskArdVideoInspectTaskStepResult" type="ArdVideoInspectTask" extends="ArdVideoInspectTaskResult">
@@ -39,7 +39,7 @@
     </resultMap>
 
     <sql id="selectArdVideoInspectTaskVo">
-        select id, task_name, start_time, end_time, repeat_period, inspect_mode, menual_switch, create_by, camera_id, channel, current_step_id, create_time, update_by, update_time, dept_id, user_id, current_stop_start_time from ard_video_inspect_task
+        select id, task_name, start_time, end_time, repeat_period, inspect_mode, menual_switch, create_by, camera_id, channel, current_step_id, current_step_start_time, create_time, update_by, update_time, dept_id, user_id from ard_video_inspect_task
     </sql>
 
     <select id="selectArdVideoInspectTaskList" parameterType="ArdVideoInspectTask" resultMap="ArdVideoInspectTaskResult">
@@ -54,14 +54,14 @@
             <if test="cameraId != null  and cameraId != ''"> and camera_id = #{cameraId}</if>
             <if test="channel != null  and channel != ''"> and channel = #{channel}</if>
             <if test="currentStepId != null  and currentStepId != ''"> and current_step_id = #{currentStepId}</if>
+            <if test="currentStepStartTime != null  and currentStepStartTime != ''"> and current_step_start_time = #{currentStepStartTime}</if>
             <if test="deptId != null  and deptId != ''"> and dept_id = #{deptId}</if>
             <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
-            <if test="currentStopStartTime != null  and currentStopStartTime != ''"> and current_stop_start_time = #{currentStopStartTime}</if>
         </where>
     </select>
     
     <select id="selectArdVideoInspectTaskById" parameterType="String" resultMap="ArdVideoInspectTaskArdVideoInspectTaskStepResult">
-        select a.id, a.task_name, a.start_time, a.end_time, a.repeat_period, a.inspect_mode, a.menual_switch, a.create_by, a.camera_id, a.channel, a.current_step_id, a.create_time, a.update_by, a.update_time, a.dept_id, a.user_id, a.current_stop_start_time,
+        select a.id, a.task_name, a.start_time, a.end_time, a.repeat_period, a.inspect_mode, a.menual_switch, a.create_by, a.camera_id, a.channel, a.current_step_id, a.current_step_start_time, a.create_time, a.update_by, a.update_time, a.dept_id, a.user_id,
  b.id as sub_id, b.order_number as sub_order_number, b.recording_time as sub_recording_time, b.well_id as sub_well_id, b.task_id as sub_task_id, b.dept_id as sub_dept_id, b.user_id as sub_user_id
         from ard_video_inspect_task a
         left join ard_video_inspect_task_step b on b.task_id = a.id
@@ -82,12 +82,12 @@
             <if test="cameraId != null">camera_id,</if>
             <if test="channel != null">channel,</if>
             <if test="currentStepId != null">current_step_id,</if>
+            <if test="currentStepStartTime != null">current_step_start_time,</if>
             <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
             <if test="updateTime != null">update_time,</if>
             <if test="deptId != null">dept_id,</if>
             <if test="userId != null">user_id,</if>
-            <if test="currentStopStartTime != null">current_stop_start_time,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -101,12 +101,12 @@
             <if test="cameraId != null">#{cameraId},</if>
             <if test="channel != null">#{channel},</if>
             <if test="currentStepId != null">#{currentStepId},</if>
+            <if test="currentStepStartTime != null">#{currentStepStartTime},</if>
             <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
             <if test="deptId != null">#{deptId},</if>
             <if test="userId != null">#{userId},</if>
-            <if test="currentStopStartTime != null">#{currentStopStartTime},</if>
          </trim>
     </insert>
 
@@ -123,12 +123,12 @@
             <if test="cameraId != null">camera_id = #{cameraId},</if>
             <if test="channel != null">channel = #{channel},</if>
             <if test="currentStepId != null">current_step_id = #{currentStepId},</if>
+            <if test="currentStepStartTime != null">current_step_start_time = #{currentStepStartTime},</if>
             <if test="createTime != null">create_time = #{createTime},</if>
             <if test="updateBy != null">update_by = #{updateBy},</if>
             <if test="updateTime != null">update_time = #{updateTime},</if>
             <if test="deptId != null">dept_id = #{deptId},</if>
             <if test="userId != null">user_id = #{userId},</if>
-            <if test="currentStopStartTime != null">current_stop_start_time = #{currentStopStartTime},</if>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3