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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.teachcloud.report.business.bean.dto.query.BasicExamRecordDto;
import com.qmth.teachcloud.report.business.entity.TBExamRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考生考试记录 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2021-06-01
 */
public interface TBExamRecordMapper extends BaseMapper<TBExamRecord> {
    /**
     * 根据考试id和课程编号集合查询考试作答记录
     * @param examId 考试id
     * @param courseCodeS 课程代码
     * @return 考试记录集合
     */
    List<BasicExamRecordDto> findByExamIdAndCourseCodeS(@Param("examId") Long examId, @Param("courseCodes") List<String> courseCodeS);
}
