From 684e4306a08feeae188070f264148e6765da8dcf Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 20 九月 2026 19:25:15 +0800
Subject: [PATCH] feat(account): 更新往来付款回款流水表及接口

---
 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