| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.springblade.modules.exam.entity.ExamSubjectChoices; |
| | | import org.springblade.modules.exam.excel.ExamSubjectExcel; |
| | | import org.springblade.modules.exam.vo.ExamSubjectChoicesVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 选择题服务类 |
| | |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | ExamSubjectChoicesVO selectExamSubjectChoicesInfo(ExamSubjectChoices examSubjectChoices); |
| | | |
| | | /** |
| | | * 修改分值 |
| | | */ |
| | | boolean updateChoicesValue(String id , String value); |
| | | |
| | | /** |
| | | * 新增题目及选项信息 |
| | | * @param examSubjectChoices 题目信息对象 |
| | | * @return |
| | | */ |
| | | boolean saveSubjectChoicesAndOption(ExamSubjectChoicesVO examSubjectChoices); |
| | | |
| | | /** |
| | | * 题库导入 |
| | | * @param data 导入数据 |
| | | * @param isCovered |
| | | */ |
| | | void importSubject(List<ExamSubjectExcel> data, Boolean isCovered); |
| | | |
| | | /** |
| | | * 判断当前题目的答题结果 |
| | | * @param preSubJectId 题目Id |
| | | * @param preResult 提交的结果 |
| | | * @return |
| | | */ |
| | | Integer getAnswerResult(Long preSubJectId, String preResult,Long scoreId); |
| | | |
| | | /** |
| | | * 随机查询题库120道 |
| | | * @return |
| | | */ |
| | | List<String> getExamSubjectChoicesList(); |
| | | |
| | | /** |
| | | * 判断当前题目的答题结果 |
| | | * @param preSubJectId 题目 id |
| | | * @param preResult 提交的结果 |
| | | * @param simulateExamId 模拟考试记录 id |
| | | * @return |
| | | */ |
| | | Integer getAnswerResultBySimulate(Long preSubJectId, String preResult, Long simulateExamId); |
| | | } |