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.TeachStudentResult;
import com.qmth.distributed.print.business.entity.TeachStudent;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 教学学生mapper
 * @Author: CaoZixuan
 * @Date: 2022-02-09
 */
public interface TeachStudentMapper extends BaseMapper<TeachStudent> {

    /**
     * 分页查询教学学生列表
     *
     * @param iPage        分页参数
     * @param teachClazzId 教学班级id
     * @param studentInfo  学生信息（学号、姓名）
     * @param schoolId     学校id
     * @return 查询结果
     */
    IPage<TeachStudentResult> findTeachStudentPage(@Param("iPage") Page<TeachStudentResult> iPage,
                                                   @Param("teachClazzId") Long teachClazzId,
                                                   @Param("studentInfo") String studentInfo,
                                                   @Param("schoolId") Long schoolId);
}
