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

/**
 * @Description: 教学课程mapper
 * @Author: CaoZixuan
 * @Date: 2022-02-07
 */
public interface TeachCourseMapper extends BaseMapper<TeachCourse> {

    /**
     * 分页查询教学课程
     *
     * @param iPage      分页参数
     * @param courseName 课程名称
     * @param userId     用户id
     * @param schoolId   学校id
     * @return 结果
     */
    IPage<TeachCourseResult> findTeachCoursePage(@Param("iPage") Page<TeachCourseResult> iPage,
                                                 @Param("courseName") String courseName,
                                                 @Param("userId") Long userId,
                                                 @Param("schoolId") Long schoolId);
}
