From c30ac5918122426ea7a33dbe411aa39b3c7aa2ca Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 27 四月 2026 13:17:36 +0800
Subject: [PATCH] feat(productionPrintOrderExcel) excel导出

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

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

--
Gitblit v1.9.3