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.result.BasicClazzResult;
import com.qmth.teachcloud.common.entity.BasicClazz;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Description: 基础课程管理mapper 接口
 * @Author: CaoZixuan
 * @Date: 2021-08-28
 */
public interface BasicClazzMapper extends BaseMapper<BasicClazz> {

    IPage<BasicClazzResult> findBasicClazzPage(@Param("iPage") Page<BasicClazzResult> iPage,
                                                   @Param("queryParams") String queryParams,
                                                   @Param("schoolId") Long schoolId,
                                                   @Param("orgIds") Set<Long> orgIds);

    /**
     * 根据班级idList和学校id查询新命题任务数据
     * @param schoolId 学校id
     * @param clazzIds 班级idSet
     * @return 数据
     */
    List<Map<Object,Object>> findExamTaskPrintByClazzIdSet(@Param("schoolId") Long schoolId,@Param("clazzIds") List<Long> clazzIds);
}
