From 3f43e40ed1a1e9f66b3ad2862da9dbc4b710c712 Mon Sep 17 00:00:00 2001
From: nishiwei <13126973358@163.com>
Date: Fri, 23 Oct 2026 14:09:47 +0800
Subject: [PATCH] 智云3.0机场1适配内容提交

---
 ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml b/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
index 7260136..1416f31 100644
--- a/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
+++ b/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
@@ -8,20 +8,27 @@
     <!-- 插入一条分片数据 -->
     <insert id="insert" parameterType="ArdFlightTaskPart" useGeneratedKeys="true" keyProperty="id">
         INSERT INTO ard_flight_task_part
-            (box_sn, count, data_part, create_time)
-        VALUES
-            (#{boxSn}, #{count}, #{dataPart}, #{createTime})
+            (box_sn, count, data_part, start_time, end_time, create_time)
+        VALUES (#{boxSn}, #{count}, #{dataPart}, #{startTime}, #{endTime}, #{createTime})
     </insert>
-    <select id="selectByTaskStartTime" resultType="ArdFlightTaskPart">
+    <select id="selectByTimeRange" resultType="ArdFlightTaskPart">
         SELECT *
         FROM ard_flight_task_part u
-        WHERE u.box_sn = #{boxSn}
-        <if test="params.beginTime != null"><!-- 开始时间检索 -->
-            AND u.create_time &gt;= #{params.beginTime}
-        </if>
-        <if test="params.endTime != null"><!-- 结束时间检索 -->
-            AND u.create_time &lt;= #{params.endTime}
-        </if>
+        <where>
+            u.box_sn = #{boxSn}
+            <!-- 动态参数中的开始时间 -->
+            <if test="params.beginTime != null">
+                AND u.end_time &gt;= #{params.beginTime}  <!-- blob 内最后状态 >= 架次起飞 -->
+            </if>
+            <!-- 动态参数中的结束时间 -->
+            <if test="params.endTime != null">
+                AND u.start_time &lt;= #{params.endTime}  <!-- blob 内第一状态 <= 架次降落 -->
+            </if>
+        </where>
+        ORDER BY u.start_time ASC
     </select>
 
+
+
+
 </mapper>

--
Gitblit v1.9.3