package com.qmth.teachcloud.report.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qmth.teachcloud.report.business.bean.result.TAExamCourseCollegeInspectResult;
import com.qmth.teachcloud.report.business.entity.TAExamCourseCollegeInspect;
import com.qmth.teachcloud.report.business.mapper.TAExamCourseCollegeInspectMapper;
import com.qmth.teachcloud.report.business.service.TAExamCourseCollegeInspectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 参考课程考查学院维度分析表 服务实现类
 * </p>
 *
 * @author wangliang
 * @since 2021-06-01
 */
@Service
public class TAExamCourseCollegeInspectServiceImpl extends ServiceImpl<TAExamCourseCollegeInspectMapper, TAExamCourseCollegeInspect> implements TAExamCourseCollegeInspectService {

    @Resource
    TAExamCourseCollegeInspectMapper taExamCourseCollegeInspectMapper;

    /**
     * 查找学院科目维度
     *
     * @param examId
     * @param courseCode
     * @param collegeId
     * @return
     */
    @Override
    public List<TAExamCourseCollegeInspectResult> findCourseDescriptiveStatisticsForCollege(Long examId, String courseCode, Long collegeId) {
        return taExamCourseCollegeInspectMapper.findCourseDescriptiveStatisticsForCollege(examId, courseCode, collegeId);
    }

    /**
     * 查找学校科目维度
     *
     * @param examId
     * @param courseCode
     * @return
     */
    @Override
    public List<TAExamCourseCollegeInspectResult> findCourseDescriptiveStatisticsForSchool(Long examId, String courseCode) {
        return taExamCourseCollegeInspectMapper.findCourseDescriptiveStatisticsForSchool(examId, courseCode);
    }

    /**
     * 我的课堂考试分析-考试概况，查找全校数据
     *
     * @param schoolId
     * @param semesterId
     * @param examId
     * @param courseCode
     * @param inspectCollegeId
     * @return
     */
    @Override
    public TAExamCourseCollegeInspectResult findTeacherInspect(Long schoolId, Long semesterId, Long examId, String courseCode, Long inspectCollegeId) {
        return taExamCourseCollegeInspectMapper.findTeacherInspect(schoolId, semesterId, examId, courseCode, inspectCollegeId);
    }
}
