From d8eddeba2456ad1c89df68979112ae98d82c7948 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 02 Dec 2025 08:21:25 +0000
Subject: [PATCH] 因外出及调休记录可跨天产生的修改

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/AttendanceMonthTalkServiceImpl.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/AttendanceMonthTalkServiceImpl.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/AttendanceMonthTalkServiceImpl.java
index ccf84cc..3ec949d 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/AttendanceMonthTalkServiceImpl.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/AttendanceMonthTalkServiceImpl.java
@@ -14,6 +14,7 @@
 import me.zhengjie.modules.system.domain.User;
 import me.zhengjie.modules.system.repository.SysConfigHolidayRepository;
 import me.zhengjie.modules.system.repository.UserRepository;
+import me.zhengjie.utils.DateUtil;
 import org.apache.commons.lang3.ObjectUtils;
 import org.springframework.stereotype.Service;
 
@@ -138,7 +139,7 @@
         List<AttendanceMonth> insertData = new ArrayList<>();
         for (AttendanceMonth value : info.values()) {
             // 查询当月外出
-            List<AttendanceGoOut> goOutList = attendanceGoOutRepository.findByUserAndDate(value.getUserId(), startTime, endTime);
+            List<AttendanceGoOut> goOutList = attendanceGoOutRepository.findByUserAndDate(value.getUserId(), DateUtil.parseAttStartTime(startTime), DateUtil.parseAttEndTime(endTime));
             int goOutNumber = goOutList.size();
             // 外出次数
             value.setGoOutNumber(Long.valueOf(goOutNumber));

--
Gitblit v1.9.3