From 00e804c53156c80a815db2ffb82c86885490f317 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期五, 12 十二月 2025 15:24:53 +0800
Subject: [PATCH] yys 修改排序

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

diff --git a/src/main/resources/mapper/production/SalesLedgerSchedulingMapper.xml b/src/main/resources/mapper/production/SalesLedgerSchedulingMapper.xml
index 1fb5907..bf4df5d 100644
--- a/src/main/resources/mapper/production/SalesLedgerSchedulingMapper.xml
+++ b/src/main/resources/mapper/production/SalesLedgerSchedulingMapper.xml
@@ -46,6 +46,7 @@
             </if>
         </where>
         GROUP BY T2.id
+        order by T1.entry_date desc
     </select>
     <select id="list" resultType="com.ruoyi.production.dto.SalesLedgerSchedulingDto">
         SELECT
@@ -122,6 +123,6 @@
                 AND  T2.production_user_id = #{salesLedgerDto.productionUserId}
             </if>
         </where>
-        order by T2.status asc
+        order by T2.status asc, T2.scheduling_date desc
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3