From 80d08b0c2a41988847adaee8c8704affe4d96b8e Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Tue, 11 Nov 2025 10:30:32 +0800
Subject: [PATCH] 取消方向控制禁飞区检查
---
ard-route/src/main/resources/mapper/ArdRouteInformationMapper.xml | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/ard-route/src/main/resources/mapper/ArdRouteInformationMapper.xml b/ard-route/src/main/resources/mapper/ArdRouteInformationMapper.xml
index b3dcf38..3ef6655 100644
--- a/ard-route/src/main/resources/mapper/ArdRouteInformationMapper.xml
+++ b/ard-route/src/main/resources/mapper/ArdRouteInformationMapper.xml
@@ -11,6 +11,8 @@
<result property="upPath" column="up_path" />
<result property="minioUpPath" column="minio_up_path" />
<result property="upFileSize" column="up_file_size" />
+ <result property="folderId" column="folder_id" />
+ <result property="routeType" column="route_type" />
<result property="aircraft" column="aircraft" />
<result property="aircraftModel" column="aircraft_model" />
<result property="createBy" column="create_by" />
@@ -26,6 +28,8 @@
up_path,
minio_up_path,
up_file_size,
+ folder_id,
+ route_type,
aircraft,
aircraft_model,
create_by,
@@ -39,6 +43,9 @@
<include refid="selectArdRouteInformationVo"/>
<where>
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
+ <if test="aircraft != null and aircraft != ''"> and aircraft = #{aircraft}</if>
+ <if test="aircraftModel != null and aircraftModel != ''"> and aircraft_model = #{aircraftModel}</if>
+ <if test="routeType != null and routeType != ''"> and route_type = #{routeType}</if>
<if test="upPath != null and upPath != ''"> and up_path = #{upPath}</if>
<if test="upFileSize != null "> and up_file_size = #{upFileSize}</if>
</where>
@@ -58,6 +65,8 @@
<if test="upPath != null">up_path,</if>
<if test="minioUpPath != null">minio_up_path,</if>
<if test="upFileSize != null">up_file_size,</if>
+ <if test="folderId != null">folder_id,</if>
+ <if test="routeType != null">route_type,</if>
<if test="aircraft != null">aircraft,</if>
<if test="aircraftModel != null">aircraft_model,</if>
<if test="createBy != null">create_by,</if>
@@ -72,6 +81,8 @@
<if test="upPath != null">#{upPath},</if>
<if test="minioUpPath != null">#{minioUpPath},</if>
<if test="upFileSize != null">#{upFileSize},</if>
+ <if test="folderId != null">#{folderId},</if>
+ <if test="routeType != null">#{routeType},</if>
<if test="aircraft != null">#{aircraft},</if>
<if test="aircraftModel != null">#{aircraftModel},</if>
<if test="createBy != null">#{createBy},</if>
@@ -89,6 +100,8 @@
<if test="upPath != null">up_path = #{upPath},</if>
<if test="minioUpPath != null">minio_up_path = #{minioUpPath},</if>
<if test="upFileSize != null">up_file_size = #{upFileSize},</if>
+ <if test="folderId != null">folder_id = #{folderId},</if>
+ <if test="routeType != null">route_type = #{routeType},</if>
<if test="aircraft != null">aircraft = #{aircraft},</if>
<if test="aircraftModel != null">aircraft_model = #{aircraftModel},</if>
<if test="createBy != null">create_by = #{createBy},</if>
@@ -115,4 +128,26 @@
where file_name = #{fileName}
</select>
+ <delete id="deleteRouteInformationByFolderIds" parameterType="String">
+ delete from ard_route_information where folder_id in
+ <foreach item="folderId" collection="array" open="(" separator="," close=")">
+ #{folderId}
+ </foreach>
+ </delete>
+
+ <select id="selectArdRouteInformationByFolderId" parameterType="String" resultMap="ArdRouteInformationResult">
+ <include refid="selectArdRouteInformationVo"/>
+ <where>
+ <if test="folderId != null "> and folder_id = #{folderId}</if>
+ </where>
+ </select>
+
+ <update id="updateRouteInformationFolderId">
+ update ard_route_information
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="folderId != null">folder_id = #{folderId},</if>
+ </trim>
+ where id = #{id}
+ </update>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3