package com.bonus.canteen.core.allocation.holiday.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.allocation.holiday.model.MktHoliday;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

@Mapper
public interface MktHolidayMapper extends BaseMapper<MktHoliday> {

   List<Date> selectAllDate(Integer holYear);

   List<MktHoliday> selectAllDateBySpecifyDay(@Param("holYear") Integer holYear, @Param("specifyDay") LocalDate specifyDay);

   void customBatchRemove(@Param("holidayType") Integer holidayType, @Param("holYear") Integer holYear, @Param("specifyDay") LocalDate specifyDay);
}
