From cd0984bff3ac9c4480685671d4e033c8b082bfed Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 04 六月 2026 17:04:39 +0800
Subject: [PATCH] 发货去除库存数量限制,产品库存不足也可以发货,库存数量可以展示为负

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

diff --git a/src/main/resources/mapper/production/ProductionProductMainMapper.xml b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
index 21ad83c..df33e70 100644
--- a/src/main/resources/mapper/production/ProductionProductMainMapper.xml
+++ b/src/main/resources/mapper/production/ProductionProductMainMapper.xml
@@ -37,8 +37,8 @@
         left join sales_ledger sl on sl.id = po.sales_ledger_id
         left join sys_user u on u.user_id = ppm.user_id
         <where>
-            <if test="c.nickName != null and c.nickName != ''">
-                and u.nick_name like concat('%',#{c.nickName},'%')
+            <if test="c.teamNames != null and c.teamNames != ''">
+                and ppm.team_names like concat('%',#{c.teamNames},'%')
             </if>
             <if test="c.workOrderNo != null and c.workOrderNo != ''">
                 and pwo.work_order_no like concat('%',#{c.workOrderNo},'%')
@@ -134,4 +134,4 @@
             #{id}
         </foreach>
     </delete>
-</mapper>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3