| | |
| | | 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; |
| | |
| | | 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); |
| | | } |