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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.teachcloud.report.business.bean.result.CourseDimensionResult;
import com.qmth.teachcloud.report.business.entity.TBDimension;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考查点维度基础表 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2021-06-01
 */
public interface TBDimensionMapper extends BaseMapper<TBDimension> {

    /**
     * 查找维度信息
     *
     * @param examId
     * @param courseCode
     * @param collegeId
     * @return
     */
    List<CourseDimensionResult> findDimensionInfo(@Param("examId") Long examId, @Param("courseCode") String courseCode, @Param("collegeId") Long collegeId);

    /**
     * 查找教师维度信息
     *
     * @param examId
     * @param courseCode
     * @param teacherId
     * @return
     */
    List<CourseDimensionResult> findDimensionByTeacherInfo(@Param("examId") Long examId, @Param("courseCode") String courseCode, @Param("teacherId") Long teacherId);

    /**
     * 查找某任课教师在某学院下所有考生在考察点得分情况统计
     *
     * @param examId           考试id
     * @param courseCode       课程编号
     * @param teacherId        教师id
     * @param inspectCollegeId 考察学院id
     * @return 考察点统计信息
     */
    List<CourseDimensionResult> findDimensionByTeacherCollegeInfo(@Param("examId") Long examId, @Param("courseCode") String courseCode, @Param("teacherId") Long teacherId, @Param("inspectCollegeId") Long inspectCollegeId);
}
