From 399f992564b673e2ba1ade31b26389359bcea0f2 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Fri, 07 Nov 2025 07:39:36 +0000
Subject: [PATCH] 调休部分时长查询API变为按照参数月份查询
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceLeaveServiceImpl.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceLeaveServiceImpl.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceLeaveServiceImpl.java
index 31e0447..4cb5424 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceLeaveServiceImpl.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceLeaveServiceImpl.java
@@ -537,8 +537,7 @@
* 获取用户调休假剩余时长
*/
@Override
- public Double getOverTimeLength(Long userId) {
- LocalDateTime localDateTime = LocalDateTime.now();
+ public Double getOverTimeLength(Long userId, LocalDateTime localDateTime) {
LocalDateTime startLocalDateTime = localDateTime.minusMonths(2L).withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0);
LocalDateTime endLocalDateTime = localDateTime.withDayOfMonth(1).plusMonths(1).minusDays(1).withHour(23).withMinute(59).withSecond(59);
@@ -583,8 +582,7 @@
* 获取用户待结算(下月即将结算)调休假时长
*/
@Override
- public Double getOverTimeCloseLength(Long userId) {
- LocalDateTime localDateTime = LocalDateTime.now();
+ public Double getOverTimeCloseLength(Long userId, LocalDateTime localDateTime) {
LocalDateTime startLocalDateTime = localDateTime.minusMonths(2L).withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0);
LocalDateTime endLocalDateTime = localDateTime.minusMonths(1L).withDayOfMonth(1).minusDays(1).withHour(23).withMinute(59).withSecond(59);
@@ -602,8 +600,7 @@
* 获取用户当月结算调休假时长
*/
@Override
- public Double getOverTimeCurrentCloseLength(Long userId) {
- LocalDateTime localDateTime = LocalDateTime.now();
+ public Double getOverTimeCurrentCloseLength(Long userId, LocalDateTime localDateTime) {
LocalDateTime startLocalDateTime = localDateTime.minusMonths(3L).withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0);
LocalDateTime endLocalDateTime = localDateTime.minusMonths(2L).withDayOfMonth(1).minusDays(1).withHour(23).withMinute(59).withSecond(59);
--
Gitblit v1.9.3