From be8b9b73d290ad5c23fe7141295588d8e693026c Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 24 三月 2026 10:27:25 +0800
Subject: [PATCH] 修改sql

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

diff --git a/src/main/resources/mapper/production/ProductWorkOrderMapper.xml b/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
index 15a210f..8398221 100644
--- a/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
@@ -51,7 +51,10 @@
             <if test="c.productOrderId != null and c.productOrderId != ''">
                and pwo.product_order_id = #{c.productOrderId}
             </if>
-        order by pwo.priority
+            <if test="c.productOrderNpsNo != null and c.productOrderNpsNo != ''">
+                and po.nps_no like concat('%',#{c.productOrderNpsNo},'%')
+            </if>
+        order by pwo.priority, pp.id
     </select>
 
     <select id="getByProductOrderId" resultType="com.ruoyi.production.dto.ProductWorkOrderDto">

--
Gitblit v1.9.3