Procházet zdrojové kódy

考试业务功能,加入相关类型绑定

zhaosongshan před 7 měsíci
rodič
revize
49ebfc8138

+ 2 - 0
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/service/impl/TExamServiceImpl.java

@@ -113,6 +113,8 @@ public class TExamServiceImpl extends ServiceImpl<TExamMapper, TExam> implements
         if(tExam.getExamType() == null){
             if(examPaper.getPaperType() == ExamPaperTypeEnum.Survey.getCode()){
                 tExam.setExamType("3"); // 调查问卷
+            }else if(tExamAddParam.getChapterId() != null){
+                tExam.setExamType("2"); // 章节测验
             }else{
                 tExam.setExamType("1"); // 普通考试
             }