From 296dedfcdcc4d769dbad703e4d80bda6b948f3f2 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Fri, 12 Dec 2025 10:39:11 +0800
Subject: [PATCH] 优化
---
ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
index e715a66..8d5f081 100644
--- a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
+++ b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
@@ -51,6 +51,9 @@
<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 DESC
+ </if>
<!-- 动态排序 -->
<if test="orderByTime != null and orderByTime != ''">
ORDER BY update_time ${orderByTime}
--
Gitblit v1.9.3