From 7b8d0d576082e148c778ca0bd2090e91bb61c4a6 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Wed, 25 Mar 2026 15:39:36 +0800
Subject: [PATCH] 支持多部门

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

diff --git a/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml b/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
index 403dd09..44c25ca 100644
--- a/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
+++ b/gkhy-system/src/main/resources/mapper/system/DailySafetyInspectionMapper.xml
@@ -117,4 +117,16 @@
           and a.dept_id = #{deptId}
           and date_format(b.check_date, '%Y%m') = date_format(now(), '%Y%m')
     </select>
+
+    <select id="getCheckCountList" parameterType="java.util.List" resultType="int">
+        select count(*)
+        from daily_safety_inspection_dept a
+                 inner join daily_safety_inspection b on a.daily_safety_inspection_id = b.id
+        where b.del_flag = 0
+        and a.dept_id in
+        <foreach collection="list" item="deptId" open="(" separator="," close=")">
+            #{deptId}
+        </foreach>
+          and date_format(b.check_date, '%Y%m') = date_format(now(), '%Y%m')
+    </select>
 </mapper>

--
Gitblit v1.9.2