From 3c4b36f26c7c58839a4b2fd27a96131ebbec9edd Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 20 八月 2026 09:50:47 +0800
Subject: [PATCH] feat(procurement): 入库/出库/库存列表按入库时间倒序排序

---
 src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
index 88324b1..520e1f7 100644
--- a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
+++ b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -73,6 +73,7 @@
                 and t1.product_model_id = #{req.productModelId}
             </if>
         </where>
+        order by t1.create_time DESC, t1.id DESC
     </select>
     <select id="list" resultType="com.ruoyi.procurementrecord.dto.ProcurementPageDto">
         select
@@ -160,8 +161,7 @@
         specificationModel,
         unit
         order by
-        (t3.supplier_name IS NULL) DESC,
-        t3.supplier_name ASC
+        max(t1.create_time) DESC
     </select>
     <select id="listCopy" resultType="com.ruoyi.procurementrecord.dto.ProcurementPageDtoCopy">
         select

--
Gitblit v1.9.3