From e0a6b0d95cf861b9c00cc173cd9d74a4fdaf342e Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 26 五月 2026 13:07:51 +0800
Subject: [PATCH] 列表查询按照id倒序

---
 src/main/resources/mapper/collaborativeApproval/NoticeMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/collaborativeApproval/NoticeMapper.xml b/src/main/resources/mapper/collaborativeApproval/NoticeMapper.xml
index 5f646ad..6a3be9e 100644
--- a/src/main/resources/mapper/collaborativeApproval/NoticeMapper.xml
+++ b/src/main/resources/mapper/collaborativeApproval/NoticeMapper.xml
@@ -11,11 +11,12 @@
                 and n.title like concat('%',#{ew.title},'%')
             </if>
             <if test="ew.type != null">
-                and n.type = #{ew.type}
+                and n.type  = #{ew.type}
             </if>
             <if test="ew.status != null">
                 and n.status = #{ew.status}
             </if>
         </where>
+        order by n.id desc
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3