qirong
2023-07-28 fbdd6af3039a83cd4727a03cecb7c5914277371f
src/main/java/com/mindskip/xzs/service/impl/ExamPaperServiceImpl.java
@@ -463,7 +463,7 @@
        Integer multipleChoice = examPaperEditRequestVM.getQuestionTypeVMS().stream().mapToInt(QuestionTypeVM::getMultipleChoice).sum();
        //判断
        Integer judgment = examPaperEditRequestVM.getQuestionTypeVMS().stream().mapToInt(QuestionTypeVM::getTrueFalse).sum();
        if ((singleChoice * 4 + multipleChoice * 5 + judgment * 2) != 100) {
        if ((singleChoice * 4 + multipleChoice * 5 + judgment * 2) != new Integer(20)) {
            throw new QuestionException();
        }