From ebf08431bb703086da2129f59d11d5bce25ffb49 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 27 四月 2026 09:32:47 +0800
Subject: [PATCH] fix(mapper): 修正生产产品主表查询中的工单ID关联字段

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

diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index 13be81d..d363dde 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -51,6 +51,9 @@
             <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
 

--
Gitblit v1.9.3