package com.qmth.teachcloud.common.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.teachcloud.common.bean.dto.DataPermissionRule;
import com.qmth.teachcloud.common.bean.result.BasicCollegeResult;
import com.qmth.teachcloud.common.bean.result.BasicMajorResult;
import com.qmth.teachcloud.common.entity.BasicCollege;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @Description: 学生学院mapper
 * @Author: CaoZixuan
 * @Date: 2022-08-17
 */
public interface BasicCollegeMapper extends BaseMapper<BasicCollege> {
    /**
     * 分页查询基础专业信息
     *
     * @param iPage       分页参数
     * @param schoolId    学校id
     * @param collegeName 学院名称
     * @param dpr      dpr
     * @return 基础专业分页参数
     */
    IPage<BasicCollegeResult> findBasicCollegePage(@Param("iPage") Page<BasicCollegeResult> iPage,
                                                   @Param("schoolId") Long schoolId,
                                                   @Param("collegeName") String collegeName,
                                                   @Param("dpr") DataPermissionRule dpr);
}
