package com.gkhy.exam.system.mapper;
import com.gkhy.exam.system.domain.ExStudentAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
*
* 学员与考试题目关系表 Mapper 接口
*
*
* @author kzy
* @since 2024-06-13 17:47:56
*/
@Mapper
public interface ExStudentAnswerMapper extends BaseMapper {
int countByPaperId(@Param("paperId") Long paperId, @Param("studentId")Long studentId);
/**
* 获取考题正确的数量
* @param paperId
* @param studentId
* @param questionType
* @return
*/
int selectPassCount(@Param("paperId") Long paperId, @Param("studentId")Long studentId, @Param("questionType")Integer questionType);
/**
* 获取考生答题
* @param studentAnswer
* @return
*/
ExStudentAnswer getStudentAnswer(ExStudentAnswer studentAnswer);
}