From ca6a10efa6bccd9ee2eba96403d6eef48b75f507 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期五, 16 十月 2026 13:08:59 +0800
Subject: [PATCH] 质量监督:日常监督检查记录单导出受监督人多人每行一个,更新记录单模板;方法验证:删除时同步清理上岗证与校准证书子表

---
 performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursMapper.xml b/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursMapper.xml
index 0c4fd2c..1ff785f 100644
--- a/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursMapper.xml
+++ b/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursMapper.xml
@@ -35,4 +35,13 @@
           ${ew.customSqlSegment}
       </if>
   </select>
+
+  <select id="hourDayBindAuxiliaryCount">
+      SELECT
+          COUNT(*)
+      FROM
+          auxiliary_working_hours_day T1
+              LEFT JOIN auxiliary_working_hours T2 ON T1.number = T2.number
+      WHERE T2.id = #{auxiliaryWorkingHoursId}
+  </select>
 </mapper>

--
Gitblit v1.9.3