From c66e0c72eecc82fabe423c00a15b34dbb9228764 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Mon, 24 Nov 2025 16:21:25 +0800
Subject: [PATCH] 优化
---
ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
index ed8a7c2..5c23ab9 100644
--- a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
+++ b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
@@ -45,7 +45,12 @@
<if test="payload != null and payload != ''"> and payload = #{payload}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="path != null and path != ''"> and path = #{path}</if>
+ <if test="groupId != null"> and group_id = #{groupId}</if>
</where>
+ <!-- 动态排序 -->
+ <if test="orderByTime != null and orderByTime != ''">
+ ORDER BY update_time ${orderByTime}
+ </if>
</select>
<select id="selectArdRouteInfoById" parameterType="String" resultMap="ArdRouteInfoResult">
@@ -119,7 +124,7 @@
<select id="selectArdRouteInfoByName" parameterType="String" resultMap="ArdRouteInfoResult">
<include refid="selectArdRouteInfoVo"/>
- where file_name = #{fileName}
+ where name = #{name}
</select>
<delete id="deleteRouteInforByGroupIds" parameterType="String">
--
Gitblit v1.9.3