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);
}
