| | |
| | | import me.zhengjie.modules.attendance.domain.AttendanceOvertime;
|
| | | import org.springframework.data.jpa.repository.JpaRepository;
|
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
| | | import org.springframework.data.jpa.repository.Modifying;
|
| | | import org.springframework.data.jpa.repository.Query;
|
| | |
|
| | | import java.time.LocalDateTime;
|
| | |
| | | List<AttendanceOvertime> findByUserId(Long userId);
|
| | |
|
| | | List<AttendanceOvertime> findByUserIdAndApprovalStatus(Long userId, String overtimePass);
|
| | |
|
| | | @Modifying
|
| | | @Query(value = "UPDATE attendance_overtime SET remaining_duration = overtime_duration WHERE user_id = ?1", nativeQuery = true)
|
| | | void resetRemainingDuration(Long userId);
|
| | | } |