From e0dac06def1d44fe28f9ca967725c01e4363b56c Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 02 九月 2026 19:29:42 +0800
Subject: [PATCH] fix(stock): 修复质检合格入库及最后工序入库逻辑

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

diff --git a/src/main/resources/mapper/production/ProductionOrderMapper.xml b/src/main/resources/mapper/production/ProductionOrderMapper.xml
index 67cc55b..acade94 100644
--- a/src/main/resources/mapper/production/ProductionOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOrderMapper.xml
@@ -134,7 +134,7 @@
         <include refid="ProductionOrderVoColumns" />
         <include refid="ProductionOrderVoFrom" />
         <include refid="ProductionOrderWhere" />
-        order by po.id desc
+        order by po.status  , po.plan_complete_time , po.nps_no desc
     </select>
 
     <select id="listProductionOrder" resultMap="ProductionOrderVoResultMap">

--
Gitblit v1.9.3