From a58567396e45d68414d6f9817cb8cfbfd2ed7c5f Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期一, 31 八月 2026 11:06:23 +0800
Subject: [PATCH] fix: 库存导入增加赋值批号

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

diff --git a/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml b/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
index 5847f5f..0a8cb29 100644
--- a/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
+++ b/src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
@@ -70,6 +70,9 @@
             <if test="c != null and c.workOrderNo != null and c.workOrderNo != ''">
                 and pot.work_order_no like concat('%', #{c.workOrderNo}, '%')
             </if>
+            <if test="c != null and c.currentUserId != null">
+                and (pot.user_ids is null or pot.user_ids = '' or pot.user_ids = '[]' or json_contains(pot.user_ids, json_quote(cast(#{c.currentUserId} as char))))
+            </if>
         </where>
         order by pot.production_order_id desc, poro.drag_sort
     </select>

--
Gitblit v1.9.3