暂停模拟考试后,继续考试修改,状态修改为考试中,题目查询按本次模拟考试题目排序,接口放行
| | |
| | | * @param list 题目id 集合 |
| | | * @return |
| | | */ |
| | | List<ExamSubjectChoicesVO> getSimulateExamRefreshList(@Param("list") List<String> list); |
| | | List<ExamSubjectChoicesVO> getSimulateExamRefreshList(@Param("list") List<Long> list); |
| | | } |
| | |
| | | <foreach collection="list" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | order by field(id, |
| | | <foreach collection="list" index="index" item="item" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | ) |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | //其他信息 |
| | | 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(); |
| | |
| | | user.setIsDeleted(0); |
| | | User user1 = userService.getOne(Condition.getQueryWrapper(user)); |
| | | if (null!=user1){ |
| | | userVip.setUserId(user1.getId()); |
| | | UserVip vip = this.getOne(Condition.getQueryWrapper(userVip)); |
| | | UserVip userVip1 = new UserVip(); |
| | | userVip1.setUserId(user1.getId()); |
| | | UserVip vip = this.getOne(Condition.getQueryWrapper(userVip1)); |
| | | if (null!=vip){ |
| | | UserVipVO vipVO = new UserVipVO(); |
| | | vipVO.setIdCardNo(user1.getCardid()); |
| | | vipVO.setSex(user1.getSex()); |
| | | vipVO.setRealName(user1.getRealName()); |
| | | return vipVO; |
| | | } |
| | | } |
| | |
| | | - /recordk/save |
| | | - /recordk/details |
| | | - /blade-user/detail |
| | | - /userVip/detail |
| | | - /userVip/getUserVipInfo |
| | | - /simulateExamRecord/getSimulateExamRecordInfo |
| | | - /simulateExamRecord/pauseExam |
| | | - /simulateExamRecord/getSimulateExamRefreshInfo |
| | | - /simulateExamRecord/beginExam |
| | | - /examSubjectChoices/getSubjectResultInfoBySimulate |
| | | |
| | | #授权认证配置 |
| | | auth: |