package com.hz.pm.api.leave.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hz.pm.api.common.model.entity.KeyValDTO;
import com.hz.pm.api.leave.entity.domain.ExpertLeaveDetail;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 专家请假详情表（维度：天） 服务类
 * </p>
 *
 * @author WendyYang
 * @since 2022-08-11
 */
public interface IExpertLeaveDetailService extends IService<ExpertLeaveDetail> {

    List<ExpertLeaveDetail> listByDateAndLeaveUserId(LocalDate startDate, LocalDate endDate, Long leaveUserId);

    boolean existsLeaveByUserIdAndTime(Long userId, List<KeyValDTO<LocalDateTime, LocalDateTime>> times);

}
