| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void againExam(ExPaperStudent exPaperStudent) { |
| | | baseMapper.deleteByPaperStudentId(exPaperStudent.getPaperId(),exPaperStudent.getStudentId()); |
| | | studentAnswerMapper.deletedByPaperStudentId(exPaperStudent.getPaperId(),exPaperStudent.getStudentId()); |
| | | BatchPaperStudentVO batchPaperStudentVO = new BatchPaperStudentVO(); |
| | | batchPaperStudentVO.setPaperId(exPaperStudent.getPaperId()); |
| | | List<Long> longs = new ArrayList<>(); |
| | | longs.add(exPaperStudent.getStudentId()); |
| | | batchPaperStudentVO.setStudentIds(longs); |
| | | batchAddPaperStudent(batchPaperStudentVO); |
| | | } |
| | | |
| | | private Integer getScore(ExExamPaper examPaper,Integer questionType){ |
| | | if(questionType.equals(QuestionTypeEnum.SINGLE.getCode())){ |
| | | return examPaper.getSingleScore(); |