| | |
| | | List<Attendance> findAllByUserAndDate(Long userId, String startDate, String endDate); |
| | | |
| | | /** 根据日期查询考勤表 **/ |
| | | @Query(value = "SELECT * FROM attendance a left join sys_user u on u.user_id = a.user_id WHERE a.attendance_date LIKE ? and u.enabled != 0", nativeQuery = true) |
| | | @Query(value = "SELECT * FROM attendance a left join sys_user u on u.user_id = a.user_id WHERE a.attendance_date LIKE ? and u.enabled != 0 order by a.user_id, a.attendance_date", nativeQuery = true) |
| | | List<Attendance> findAllLikeDate(String baseDate); |
| | | } |