package com.yonge.cooleshow.biz.dal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yonge.cooleshow.biz.dal.entity.TeacherFreeTime;
import com.yonge.cooleshow.biz.dal.vo.PracticeTeacherVo;
import com.yonge.cooleshow.biz.dal.vo.TeacherFreeTimeVo;
import com.yonge.cooleshow.biz.dal.wrapper.TeacherFreeTimeWrapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 老师可排课时间表(TeacherFreeTime)表数据库访问层
 *
 * @author zx
 * @since 2022-03-25 10:04:26
 */
public interface TeacherFreeTimeDao extends BaseMapper<TeacherFreeTime> {

    int insertBatch(@Param("entities") List<TeacherFreeTime> entities);

    //查询老师配置
    TeacherFreeTimeVo getDetail(@Param("userId") Integer userId);

    //查询过审老师配置默认
    List<TeacherFreeTime> getTeacherFreeTime();

    List<PracticeTeacherVo> queryTeacherList(@Param("page") IPage<PracticeTeacherVo> page, @Param("param") TeacherFreeTimeWrapper.TeacherSearch query);
}

