From 277b4f8a32c2332bc067a263bcce2e763e8d13aa Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Wed, 21 Jan 2026 16:38:01 +0800
Subject: [PATCH] 1. 新增航线任务接口。 2. 新增查询航线任务列表接口。 3. 新增获取航线任务详细信息。 4. 新增航线任务接口。 5. 新增修改航线任务接口。 6. 新增删除航线任务接口。 7. 新增修改航线任务状态接口。 8. 优化查询分组业务逻辑。 9. 航线(kmz)对象增加航线任务ID信息。 10. 新增航线(kmz)业务增加航线任务数据加工校验相关业务逻辑。 11. 新增航向任务下航点信息业务相关接口。
---
ard-device/src/main/resources/mapper/ArdCameraMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ard-device/src/main/resources/mapper/ArdCameraMapper.xml b/ard-device/src/main/resources/mapper/ArdCameraMapper.xml
index e764bdf..cf87cad 100644
--- a/ard-device/src/main/resources/mapper/ArdCameraMapper.xml
+++ b/ard-device/src/main/resources/mapper/ArdCameraMapper.xml
@@ -19,6 +19,7 @@
<result property="longitude" column="longitude"/>
<result property="latitude" column="latitude"/>
<result property="altitude" column="altitude"/>
+ <result property="dockId" column="dock_id"/>
<result property="userId" column="user_id"/>
<result property="deptId" column="dept_id"/>
<result property="loginId" column="login_id"/>
@@ -78,6 +79,7 @@
c.longitude,
c.latitude,
c.altitude,
+ c.dock_id,
c.user_id,
c.dept_id,
c.login_id,
@@ -108,6 +110,7 @@
<if test="longitude != null ">and c.longitude = #{longitude}</if>
<if test="latitude != null ">and c.latitude = #{latitude}</if>
<if test="altitude != null ">and c.altitude = #{altitude}</if>
+ <if test="dockId != null ">and c.dock_id = #{dockId}</if>
<if test="loginId != null ">and c.login_id = #{loginId}</if>
<if test="state != null ">and c.state = #{state}</if>
<if test="deptId != null and deptId != 0">
@@ -145,6 +148,7 @@
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="altitude != null">altitude,</if>
+ <if test="dockId != null">dock_id,</if>
<if test="loginId != null">login_id,</if>
<if test="deptId != null">dept_id,</if>
<if test="userId != null">user_id,</if>
@@ -169,6 +173,7 @@
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="altitude != null">#{altitude},</if>
+ <if test="dockId != null">#{dockId},</if>
<if test="loginId != null">#{loginId},</if>
<if test="deptId != null">#{deptId},</if>
<if test="userId != null">#{userId},</if>
@@ -196,6 +201,8 @@
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="altitude != null">altitude = #{altitude},</if>
+ <!-- 简洁写法:直接设置值,包括null -->
+ dock_id = #{dockId},
<if test="loginId != null">login_id = #{loginId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="userId != null">user_id = #{userId},</if>
@@ -228,6 +235,9 @@
where ip = #{ip}
and port = #{port} limit 1
</select>
+ <select id="checkAirportHasCamera" resultMap="ArdCameraResult">
+ select * from ard_camera where dock_id = #{dockId} limit 1
+ </select>
<update id="resetCameraLoginId" parameterType="ArdCamera">
update ard_camera set login_id = -1 where id = #{id}
</update>
--
Gitblit v1.9.3