From 537cf9cd1e3ac2e03655cc1d062dad8abc193a9a Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Thu, 05 Feb 2026 20:18:05 +0800
Subject: [PATCH] 1. 最后提交所有修改。
---
ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml b/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
index 811c132..1416f31 100644
--- a/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
+++ b/ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
@@ -8,24 +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 >= #{params.beginTime}
+ AND u.end_time >= #{params.beginTime} <!-- blob 内最后状态 >= 架次起飞 -->
</if>
+ <!-- 动态参数中的结束时间 -->
<if test="params.endTime != null">
- AND u.create_time <= #{params.endTime}
+ AND u.start_time <= #{params.endTime} <!-- blob 内第一状态 <= 架次降落 -->
</if>
</where>
- ORDER BY u.create_time ASC
+ ORDER BY u.start_time ASC
</select>
+
+
</mapper>
--
Gitblit v1.9.3