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       教学课程id
     * @param teachClazzName      教学班
     * @param belongTeachCourseId 分配所属教学课程id
     * @return 结果
     */
    IPage<TeachClazzResult> findTeachClazzPage(@Param("iPage") Page<TeachClazzResult> iPage, @Param("teachCourseId") Long teachCourseId,
            @Param("teachClazzName") String teachClazzName, @Param("belongTeachCourseId") Long belongTeachCourseId);
}
