From ac79dfd8d661dbe166553ff80fbdbfee64e8134e Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期二, 28 四月 2026 16:02:20 +0800
Subject: [PATCH] feat(production): 添加工序ID字段支持

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

diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index 72f848f..7e16334 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -51,11 +51,11 @@
             <if test="c.auditStatus != null">
                 and ppm.audit_status = #{c.auditStatus}
             </if>
-            <if test="c.workOrderId != ''">
+            <if test="c.workOrderId != null">
                 and ppm.work_order_id = #{c.workOrderId}
             </if>
         </where>
-        order by pwo.id desc, ppm.id asc
+        order by  ppm.id desc
 
     </select>
     <select id="getOrderByMainId" resultType="com.ruoyi.production.pojo.ProductOrder">

--
Gitblit v1.9.3