eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/repository/AttendanceGoOutRepository.java
@@ -16,8 +16,6 @@
package me.zhengjie.modules.attendance.repository;
import me.zhengjie.modules.attendance.domain.AttendanceGoOut;
import me.zhengjie.modules.attendance.domain.AttendanceLeave;
import me.zhengjie.modules.system.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
@@ -44,6 +42,6 @@
    List<AttendanceGoOut> checkCreateUpdateTime(String startTime, String endTime, Long userId, Set<Long> ids);
    // 查询外出记录
    @Query(value = "SELECT * from attendance_go_out where user_id = ?1 and out_start_time <= ?3 and out_end_time >= ?2 and approval_status in ('go_out_approve_status_agree')", nativeQuery = true)
    @Query(value = "SELECT * from attendance_go_out where user_id = ?1 and out_start_time <= ?2 and out_end_time >= ?3 and approval_status in ('go_out_approve_status_agree')", nativeQuery = true)
    List<AttendanceGoOut> findByUserAndDate(Long userId, LocalDateTime startDate, LocalDateTime endDate);
}