| | |
| | | import org.springblade.modules.exam.vo.ExamSubjectChoicesVO; |
| | | import org.springblade.modules.simulateexam.entity.SimulateExamAnswerRecord; |
| | | import org.springblade.modules.simulateexam.service.SimulateExamAnswerRecordService; |
| | | import org.springblade.modules.system.service.MyAsyncService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | |
| | | /** |
| | | * 选择题服务实现类 |
| | | * |
| | | * @author zhongrj |
| | | */ |
| | | @Service |
| | |
| | | |
| | | @Autowired |
| | | private SimulateExamAnswerRecordService simulateExamAnswerRecordService; |
| | | @Autowired |
| | | private MyAsyncService myAsyncService; |
| | | |
| | | |
| | | @Override |
| | |
| | | |
| | | /** |
| | | * 详情 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @Override |
| | |
| | | |
| | | /** |
| | | * 新增题目及选项信息 |
| | | * |
| | | * @param examSubjectChoices 题目信息对象 |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 题库导入 |
| | | * |
| | | * @param data 导入数据 |
| | | * @param isCovered |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 判断当前题目的答题结果 |
| | | * |
| | | * @param preSubJectId 题目Id |
| | | * @param preResult 提交的结果 |
| | | * @param scoreId 成绩id |
| | |
| | | |
| | | /** |
| | | * 新增答题记录 |
| | | * |
| | | * @param choices 题目 |
| | | * @param preSubJectId 上一题题目id |
| | | * @param preResult 上一题答题结果 |
| | |
| | | "," + "'" + examAnswerRecord.getAnswerScore() + "'" + |
| | | "," + "'" + examAnswerRecord.getAnswerResult() + "'" + |
| | | "," + "'" + examAnswerRecord.getScoreId() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | } |
| | | |
| | | /** |
| | | * 随机查询题库120道 |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | |
| | | |
| | | /** |
| | | * 判断当前题目的答题结果 |
| | | * |
| | | * @param preSubJectId 题目 id |
| | | * @param preResult 提交的结果 |
| | | * @param simulateExamId 模拟考试记录 id |
| | |
| | | |
| | | /** |
| | | * 新增模拟考试答题记录 |
| | | * |
| | | * @param choices 题目信息 |
| | | * @param preSubJectId 题目id |
| | | * @param preResult 提交的答案 |