From 7634ef68f117a8ef89b71cd7466bc208a521dbb7 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 07 八月 2026 21:07:33 +0800
Subject: [PATCH] fix: 根据报工编号倒序

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

diff --git a/src/main/resources/mapper/production/ProductionOrderMapper.xml b/src/main/resources/mapper/production/ProductionOrderMapper.xml
index c5c9e3a..0028120 100644
--- a/src/main/resources/mapper/production/ProductionOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOrderMapper.xml
@@ -113,6 +113,9 @@
                 <if test="c.npsNo != null and c.npsNo != ''">
                     and po.nps_no like concat('%', #{c.npsNo}, '%')
                 </if>
+                <if test="c.salesContractNo != null and c.salesContractNo != ''">
+                    and po_sales.salesContractNo like concat('%', #{c.salesContractNo}, '%')
+                </if>
                 <if test="c.productionPlanIds != null and c.productionPlanIds != ''">
                     and po.production_plan_ids like concat('%', #{c.productionPlanIds}, '%')
                 </if>

--
Gitblit v1.9.3