| | |
| | | //其他信息 |
| | | SimulateExamRecord simulateExamRecord1 = this.getById(simulateExamRecord.getId()); |
| | | List<String> list = Arrays.asList(simulateExamRecord1.getSubjectIds().split(",")); |
| | | List<Long> list1 = new ArrayList<>(); |
| | | //装换为Long 类型,不然返回的题目顺序会乱 |
| | | for (String s : list) { |
| | | list1.add(Long.parseLong(s)); |
| | | } |
| | | |
| | | //修改信息,修改回考试中的状态 |
| | | simulateExamRecord1.setStatus(2); |
| | | simulateExamRecord1.setStatus(1); |
| | | this.updateById(simulateExamRecord1); |
| | | |
| | | //1.查询当前人员当前模拟考试的考试题目信息 |
| | | List<ExamSubjectChoicesVO> examSubjectChoicesVOSList = baseMapper.getSimulateExamRefreshList(list); |
| | | List<ExamSubjectChoicesVO> examSubjectChoicesVOSList = baseMapper.getSimulateExamRefreshList(list1); |
| | | |
| | | //2.查询当前人员已答的题目信息 |
| | | SimulateExamAnswerRecord simulateExamAnswerRecord = new SimulateExamAnswerRecord(); |
| | |
| | | //去获取题目 |
| | | return insertSimulateExamRecord(simulateExamRecord1); |
| | | } |
| | | |
| | | } |
| | | return null; |
| | | } |