From 6a1158de0c1082abb74e9ca6788bf284bf99749d Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Tue, 17 Jan 2023 09:55:56 +0000
Subject: [PATCH] 考勤

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/repository/AttendanceLeaveRepository.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/repository/AttendanceLeaveRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/repository/AttendanceLeaveRepository.java
index bcb6907..680247f 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/repository/AttendanceLeaveRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/repository/AttendanceLeaveRepository.java
@@ -47,6 +47,6 @@
     Double getSurplusYearTime(Long userId,String startTime,String endTime);
 
     //查询请假记录
-    @Query(value = "SELECT * from attendance_leave where user_id = ?1 and leave_start_time <= ?3 and leave_end_time >= ?2 and approval_status IN  ('approval_status_passed')", nativeQuery = true)
+    @Query(value = "SELECT * from attendance_leave where user_id = ?1 and leave_start_time < ?3 and leave_end_time > ?2 and approval_status IN  ('approval_status_passed')", nativeQuery = true)
     List<AttendanceLeave> findByUserIdAndDate(Long userId, LocalDateTime startDate, LocalDateTime endDate);
 }
\ No newline at end of file

--
Gitblit v1.9.3