package com.cool.store.mapper;

import com.cool.store.entity.LineCalendarsEventDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface LineCalendarsEventMapper extends Mapper<LineCalendarsEventDO> {

    List<LineCalendarsEventDO>  getInterviewerLineCalendarsEvent(@Param("interviewerUserId")String interviewerUserId, @Param("interviewDate")String interviewDate);

    List<LineCalendarsEventDO>  getRegionLineCalendarsEvent(@Param("regionId")Long regionId, @Param("interviewDate")String interviewDate);

    /**
     * 被占用次数
     * @param interviewType
     * @param regionId
     * @param interviewerUserId
     * @param startTime
     * @param endTime
     * @param excludeInterviewId
     * @return
     */
    Integer getOccupiedCount(@Param("interviewType") Integer interviewType, @Param("regionId") Long regionId, @Param("interviewerUserId") String interviewerUserId,
                             @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("excludeInterviewId")Long excludeInterviewId);


}