From 7653e39b0c809b7f31aed1eaaa42e1662755dfdb Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Sat, 07 Mar 2026 10:33:11 +0800
Subject: [PATCH] 1. 优化精细化巡检业务。
---
ard-inspection/src/main/resources/mapper/ArdPointCloudMapper.xml | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/ard-inspection/src/main/resources/mapper/ArdPointCloudMapper.xml b/ard-inspection/src/main/resources/mapper/ArdPointCloudMapper.xml
index 236313f..43c6a84 100644
--- a/ard-inspection/src/main/resources/mapper/ArdPointCloudMapper.xml
+++ b/ard-inspection/src/main/resources/mapper/ArdPointCloudMapper.xml
@@ -20,6 +20,20 @@
<result property="filePath" column="file_path" />
</resultMap>
+<!-- <resultMap type="ArdPointCloud" id="ArdPointCloudRouteNameResult">-->
+<!-- <result property="id" column="id" />-->
+<!-- <result property="cloudName" column="cloud_name" />-->
+<!-- <result property="fileName" column="file_name" />-->
+<!-- <result property="folderName" column="folder_name" />-->
+<!-- <result property="fileSize" column="file_size" />-->
+<!-- <result property="associatedState" column="associated_state" />-->
+<!-- <result property="routeId" column="route_id" />-->
+<!-- <result property="groupId" column="group_id" />-->
+<!-- <result property="filePath" column="file_path" />-->
+<!-- <result property="filePath" column="file_path" />-->
+<!-- <result property="filePath" column="file_path" />-->
+<!-- </resultMap>-->
+
<sql id="selectArdPointCloudVo">
select id,
cloud_name,
@@ -35,6 +49,24 @@
update_time,
file_path
from ard_point_cloud
+ </sql>
+
+ <sql id="selectArdPointCloudRouteName">
+ SELECT
+ a.id,
+ a.cloud_name,
+ a.file_name,
+ a.folder_name,
+ a.file_size,
+ a.associated_state,
+ a.route_id,
+ a.group_id,
+ a.file_path,
+ c.id,
+ c.name
+ FROM ard_point_cloud a
+ LEFT JOIN ard_route_cloud b ON a.id = b.cloud_id
+ LEFT JOIN ard_route_info c ON b.route_id = c.id
</sql>
<select id="selectArdPointCloudList" parameterType="ArdPointCloud" resultMap="ArdPointCloudResult">
@@ -130,4 +162,9 @@
where file_name = #{fileName}
</select>
+<!-- <select id="selectCloudIdByRouteName" parameterType="String" resultMap="ArdPointCloudResult">-->
+<!-- <include refid="selectArdPointCloudRouteName"/>-->
+<!-- where file_name = #{fileName}-->
+<!-- </select>-->
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3