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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qmth.teachcloud.report.business.bean.result.CellResult;
import com.qmth.teachcloud.report.business.entity.TAExamCourseDifficult;
import com.qmth.teachcloud.report.business.mapper.TAExamCourseDifficultMapper;
import com.qmth.teachcloud.report.business.service.TAExamCourseDifficultService;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 * 考试课程，各难度题目得分率表（难度题得分率、中等难度题得分率、简单题得分率） 服务实现类
 * </p>
 *
 * @author wangliang
 * @since 2021-06-01
 */
@Service
public class TAExamCourseDifficultServiceImpl extends ServiceImpl<TAExamCourseDifficultMapper, TAExamCourseDifficult> implements TAExamCourseDifficultService {

    @Resource
    TAExamCourseDifficultMapper taExamCourseDifficultMapper;

    /**
     * 查找有效答案
     *
     * @param examId
     * @param courseCode
     * @param collegeId
     * @return
     */
    @Override
    public List<CellResult> findValidAnswerDetail(Long examId, String courseCode, Long collegeId) {
        return taExamCourseDifficultMapper.findValidAnswerDetail(examId, courseCode, collegeId);
    }
}
