package com.qmth.teachcloud.report.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.teachcloud.report.business.bean.result.SurveyTeacherExamCourseResult;
import com.qmth.teachcloud.report.business.bean.result.TBExamCourseResult;
import com.qmth.teachcloud.report.business.entity.TBExamCourse;
import com.qmth.teachcloud.report.business.enums.PublishStatusEnum;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 考试科目表 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2021-06-02
 */
public interface TBExamCourseMapper extends BaseMapper<TBExamCourse> {

    /**
     * 查询科目信息
     *
     * @param schoolId
     * @param examId
     * @param inspect
     * @param collegeIds
     * @param filter
     * @param absent
     * @param current
     * @param status
     * @return
     */
    List<TBExamCourseResult> findCourseList(@Param("schoolId") Long schoolId, @Param("examId") Long examId, @Param("inspect") boolean inspect, @Param("collegeIds") List<Long> collegeIds, @Param("filter") boolean filter, @Param("absent") Boolean absent, @Param("current") Boolean current, @Param("status") String status);

    /**
     * 查询科目信息
     *
     * @param schoolId
     * @param examId
     * @param teacherId
     * @param absent
     * @param current
     * @param status
     * @return
     */
    List<TBExamCourseResult> findCourseListByTeacherId(@Param("schoolId") Long schoolId, @Param("examId") Long examId, @Param("teacherId") Long teacherId, @Param("absent") Boolean absent, @Param("current") Boolean current, @Param("status") String status);
}
