From b52a346d937c162120057f9c235904e66438e2a3 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 16 十二月 2025 13:37:14 +0800
Subject: [PATCH] 仓储物流增加产品大类搜索 决策分析增加项目利润

---
 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