“djh”
20 小时以前 75309a59a676fb70f91dd01b05d93c7704a3836f
multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExPaperStudentServiceImpl.java
@@ -322,6 +322,19 @@
        }
    }
    @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();