From 32f55fac90d67b276254b6d91e8b65e8f6e36b48 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Thu, 18 Sep 2025 10:09:28 +0800
Subject: [PATCH] 功能改造

---
 gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml b/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
index f1f3115..e573dcc 100644
--- a/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
+++ b/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
@@ -64,8 +64,13 @@
         <if test="haveMainHazard != null and haveMainHazard == 1 ">
             and (main_hazard != '无' and main_hazard != ' ')
         </if>
-        <if test="searchCheckUserId != null ">
-            and a.id in (select daily_safety_inspection_id from daily_safety_inspection_user where check_user_id = #{searchCheckUserId})
+        <if test="searchCheckUserIds != null and !searchCheckUserIds.isEmpty()">
+            and a.id in (
+            select distinct daily_safety_inspection_id from daily_safety_inspection_user
+            where check_user_id in    <foreach collection="searchCheckUserIds" item="group" open="(" separator="," close=")">
+            #{group}
+        </foreach>
+            )
         </if>
         order by a.create_time desc
     </select>

--
Gitblit v1.9.2