From e036b72507c69183413f27abd45c0a28157943fc Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期三, 26 八月 2026 10:33:55 +0800
Subject: [PATCH] fix: 原料更名为原材料 回退409e7595提交

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

diff --git a/src/main/resources/mapper/production/ProductionOrderMapper.xml b/src/main/resources/mapper/production/ProductionOrderMapper.xml
index 8e64413..74e80a9 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 desc
     </select>
 
     <select id="listProductionOrder" resultMap="ProductionOrderVoResultMap">
@@ -233,7 +233,9 @@
             </if>
         </where>
         order by po.id desc
-        limit #{offset}, #{size}
+        <if test="size != null and size &gt;= 0">
+            limit #{offset}, #{size}
+        </if>
     </select>
 
     <select id="countHomeOrderProgress" resultType="java.lang.Long">

--
Gitblit v1.9.3