From 4a9566ba1c800535504462b06a93b1a6e5092f28 Mon Sep 17 00:00:00 2001
From: liusuyi <13324259@qq.com>
Date: 星期六, 03 六月 2023 21:11:03 +0800
Subject: [PATCH] 解决手动巡检启动2次的问题

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

diff --git a/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml b/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
index f98fe8e..8101ae7 100644
--- a/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
+++ b/ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
@@ -51,7 +51,7 @@
             <if test="cameraId != null  and cameraId != ''"> and camera_id = #{cameraId}</if>
             <if test="channel != null "> and channel = #{channel}</if>
         </where>
-        order by id
+        order by start_time
     </select>
     
     <select id="selectArdVideoInspectTaskById" parameterType="String" resultMap="ArdVideoInspectTaskArdVideoInspectTaskStepResult">
@@ -155,4 +155,11 @@
             ( #{item.taskId}, #{item.deptId}, #{item.userId},  #{item.orderNumber}, #{item.recordingTime}, #{item.wellId})
         </foreach>
     </insert>
+
+    <!--鏌ヨ浠诲姟涓浉鏈哄凡浣跨敤鏃舵-->
+    <select id="getTaskUsedCameraPeriods" parameterType="String" resultType="java.util.HashMap">
+        select t.start_time,t.end_time from ard_video_inspect_task t
+        where t.camera_id=#{startMonth}
+        ORDER BY t.start_time
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3