From 3f064b2ef3368351fafd17d626a9a53fe23313c3 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 01 六月 2026 18:43:16 +0800
Subject: [PATCH] fix(purchase): 修复采购台账库存入库记录查询逻辑

---
 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..06acc33 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.create_time desc
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3