package com.qmth.distributed.print.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qmth.distributed.print.business.bean.result.TeachClazzResult;
import com.qmth.distributed.print.business.entity.TeachClazz;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 教学班mapper
 * @Author: CaoZixuan
 * @Date: 2022-02-09
 */
public interface TeachClazzMapper extends BaseMapper<TeachClazz> {

    /**
     * 分页查询教学班级
     *
     * @param iPage          分页参数
     * @param teachCourseId  教学课程主键
     * @param teachClazzName 教学班级名称
     * @param schoolId       学校id
     * @return 结果
     */
    IPage<TeachClazzResult> findTeachClazzPage(@Param("iPage") Page<TeachClazzResult> iPage,
                                               @Param("teachCourseId") Long teachCourseId,
                                               @Param("teachClazzName") String teachClazzName,
                                               @Param("schoolId") Long schoolId);
}
