From 5d81fcc5768741323a2e343fc01f44e17e68b65b Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 25 六月 2026 14:59:38 +0800
Subject: [PATCH] 1.库存入库新增质检流程 2.销售相关查询返回总合同号 3.采购相关查询返回总合同号

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

diff --git a/src/main/resources/mapper/production/ProductionPlanMapper.xml b/src/main/resources/mapper/production/ProductionPlanMapper.xml
index a389d32..d4b4691 100644
--- a/src/main/resources/mapper/production/ProductionPlanMapper.xml
+++ b/src/main/resources/mapper/production/ProductionPlanMapper.xml
@@ -27,6 +27,7 @@
         p.product_name AS productName,
         pm.unit,
         sl.sales_contract_no,
+        sl.master_contract_no,
         sl.customer_name,
         sl.project_name
         FROM production_plan pp
@@ -52,6 +53,12 @@
                 </if>
                 <if test="c.requiredDateStart != null and c.requiredDateEnd != null">
                     and pp.required_date between #{c.requiredDateStart} and #{c.requiredDateEnd}
+                </if>
+                <if test="c.salesContractNo != null and c.salesContractNo != ''">
+                    and sl.sales_contract_no like concat('%', #{c.salesContractNo}, '%')
+                </if>
+                <if test="c.masterContractNo != null and c.masterContractNo != ''">
+                    and sl.master_contract_no like concat('%', #{c.masterContractNo}, '%')
                 </if>
             </if>
         </where>
@@ -91,6 +98,7 @@
         p.product_name AS productName,
         pm.unit,
         sl.sales_contract_no,
+        sl.master_contract_no,
         sl.customer_name,
         sl.project_name
         FROM production_plan pp

--
Gitblit v1.9.3