From 1b2c073398c674d9b0e4aaf51d5beaae0a1ee069 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期二, 04 八月 2026 16:23:42 +0800
Subject: [PATCH] fix: 生产报工只看查看本人或者交接人
---
src/main/resources/mapper/production/ProductWorkOrderMapper.xml | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductWorkOrderMapper.xml b/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
index 86d7512..60257a2 100644
--- a/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductWorkOrderMapper.xml
@@ -46,6 +46,9 @@
LEFT JOIN product_model pm ON pm.id = ppri.product_model_id
LEFT JOIN product p ON p.id = pm.product_id
where 1=1
+ <if test="c.currentUserId != null">
+ and (pwo.worker_id = #{c.currentUserId} or pwo.handover_user_id = #{c.currentUserId})
+ </if>
<if test="c.workOrderNo != null and c.workOrderNo != ''">
and pwo.work_order_no like concat('%',#{c.workOrderNo},'%')
</if>
--
Gitblit v1.9.3