From 5a4168664a6d2d98f505d1f3ced39eaf4b2ed05c Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Thu, 13 Nov 2025 16:39:03 +0800
Subject: [PATCH] 1.修改bug。分组查询报错问题
---
ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml | 61 +++++++++++++++---------------
1 files changed, 31 insertions(+), 30 deletions(-)
diff --git a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
index 3c869dc..2b0e11e 100644
--- a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
+++ b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
@@ -7,13 +7,13 @@
<resultMap type="ArdRouteInfo" id="ArdRouteInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
- <result property="upPath" column="up_path" />
- <result property="groupingId" column="grouping_id" />
+ <result property="path" column="path" />
+ <result property="groupId" column="group_id" />
<result property="type" column="type" />
<result property="aircraft" column="aircraft" />
<result property="payload" column="payload" />
<result property="routeData" column="route_data" />
- <result property="isImport" column="is_import" />
+ <result property="readOnly" column="read_only" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
@@ -23,18 +23,18 @@
<sql id="selectArdRouteInfoVo">
select id,
name,
- up_path,
- grouping_id,
+ path,
+ group_id,
type,
aircraft,
payload,
route_data,
- is_import,
+ read_only,
create_by,
create_time,
update_by,
update_time
- from ard_route_infor
+ from ard_route_info
</sql>
<select id="selectArdRouteInfoList" parameterType="ArdRouteInfo" resultMap="ArdRouteInfoResult">
@@ -44,7 +44,7 @@
<if test="aircraft != null and aircraft != ''"> and aircraft = #{aircraft}</if>
<if test="payload != null and payload != ''"> and payload = #{payload}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
- <if test="upPath != null and upPath != ''"> and up_path = #{upPath}</if>
+ <if test="path != null and path != ''"> and path = #{path}</if>
</where>
</select>
@@ -54,17 +54,17 @@
</select>
<insert id="insertArdRouteInfo" parameterType="ArdRouteInfo">
- insert into ard_route_infor
+ insert into ard_route_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
- <if test="upPath != null">up_path,</if>
- <if test="groupingId != null">grouping_id,</if>
+ <if test="path != null">path,</if>
+ <if test="groupId != null">group_id,</if>
<if test="type != null">type,</if>
<if test="aircraft != null">aircraft,</if>
<if test="payload != null">payload,</if>
<if test="routeData != null">route_data,</if>
- <if test="isImport != null">is_import,</if>
+ <if test="readOnly != null">read_only,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
@@ -73,13 +73,13 @@
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
- <if test="upPath != null">#{upPath},</if>
- <if test="groupingId != null">#{groupingId},</if>
+ <if test="path != null">#{path},</if>
+ <if test="groupId != null">#{groupId},</if>
<if test="type != null">#{type},</if>
<if test="aircraft != null">#{aircraft},</if>
<if test="payload != null">#{payload},</if>
<if test="routeData != null">#{routeData},</if>
- <if test="isImport != null">#{isImport},</if>
+ <if test="readOnly != null">#{readOnly},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
@@ -88,15 +88,16 @@
</insert>
<update id="updateArdRouteInfo" parameterType="ArdRouteInfo">
- update ard_route_infor
+ update ard_route_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
- <if test="upPath != null">up_path = #{upPath},</if>
+ <if test="path != null">path = #{path},</if>
+ <if test="groupId != null">group_id = #{groupId},</if>
<if test="type != null">type = #{type},</if>
<if test="aircraft != null">aircraft = #{aircraft},</if>
<if test="payload != null">payload = #{payload},</if>
<if test="routeData != null">route_data = #{routeData},</if>
- <if test="isImport != null">is_import = #{isImport},</if>
+ <if test="readOnly != null">read_only = #{readOnly},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
@@ -106,11 +107,11 @@
</update>
<delete id="deleteArdRouteInfoById" parameterType="String">
- delete from ard_route_infor where id = #{id}
+ delete from ard_route_info where id = #{id}
</delete>
<delete id="deleteArdRouteInfoByIds" parameterType="String">
- delete from ard_route_infor where id in
+ delete from ard_route_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
@@ -121,24 +122,24 @@
where file_name = #{fileName}
</select>
- <delete id="deleteRouteInforByGroupingIds" parameterType="String">
- delete from ard_route_infor where grouping_id in
- <foreach item="groupingIId" collection="array" open="(" separator="," close=")">
- #{groupingIId}
+ <delete id="deleteRouteInforByGroupIds" parameterType="String">
+ delete from ard_route_info where group_id in
+ <foreach item="groupId" collection="array" open="(" separator="," close=")">
+ #{groupId}
</foreach>
</delete>
- <select id="selectArdRouteInfoByGroupingId" parameterType="String" resultMap="ArdRouteInfoResult">
- select id,name,up_path,grouping_id,type,aircraft,payload,is_import,create_by,create_time,update_by,update_time from ard_route_infor
+ <select id="selectArdRouteInfoByGroupId" parameterType="String" resultMap="ArdRouteInfoResult">
+ select id,name,path,group_id,type,aircraft,payload,read_only,create_by,create_time,update_by,update_time from ard_route_info
<where>
- <if test="groupingId != null "> and grouping_id = #{groupingId}</if>
+ <if test="groupId != null "> and group_id = #{groupId}</if>
</where>
</select>
- <update id="updateRouteInforGroupingId">
- update ard_route_infor
+ <update id="updateRouteInforGroupId">
+ update ard_route_info
<trim prefix="SET" suffixOverrides=",">
- <if test="groupingId != null">grouping_id = #{groupingId},</if>
+ <if test="groupId != null">group_id = #{groupId},</if>
</trim>
where id = #{id}
</update>
--
Gitblit v1.9.3