From 1ec3b6f73b1ee8b81d8c6583c38ffdf5ea52ed56 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 29 九月 2026 14:29:08 +0800
Subject: [PATCH] 新疆-融邦 1.协同办公-协同审批:采购及销售审批进入销售流程后也可预览在台账上传的附件

---
 src/main/resources/mapper/staff/PersonalShiftMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/staff/PersonalShiftMapper.xml b/src/main/resources/mapper/staff/PersonalShiftMapper.xml
index e872e01..b912e24 100644
--- a/src/main/resources/mapper/staff/PersonalShiftMapper.xml
+++ b/src/main/resources/mapper/staff/PersonalShiftMapper.xml
@@ -112,4 +112,15 @@
         order by s.create_time
     </select>
 
+    <select id="existsAttendanceUsedByConfig" resultType="boolean">
+        SELECT EXISTS (
+            SELECT 1
+            FROM personal_shift ps
+            INNER JOIN personal_attendance_records par
+                ON par.staff_on_job_id = ps.staff_on_job_id
+               AND par.date = DATE(ps.work_time)
+            WHERE ps.personal_attendance_location_config_id = #{configId}
+        )
+    </select>
+
 </mapper>

--
Gitblit v1.9.3