package com.jwipc.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.AppointmentDayOff;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.order.model.query.AppointmentDayOffQuery;

import java.util.List;

/**
 * <p>
 * 预约到货法定节假日配置表 服务类
 * </p>
 *
 * @author WT
 * @since 2024-03-06
 */
public interface IAppointmentDayOffService extends IService<AppointmentDayOff> {
    /**
     * 查询列表数据
     * @param dbPage
     * @param query
     * @return
     */
    List<AppointmentDayOff> selectListByPage(Page<AppointmentDayOff> dbPage, AppointmentDayOffQuery query);

    /**
     * 校验日期是否是法修
     *
     * @param selectDay 预约的日期
     */
    void checkDay(String selectDay) throws Exception;
}
