Bladeren bron

fix:评卷参数设置

caozixuan 3 jaren geleden
bovenliggende
commit
f0049bbb14

+ 1 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamPaperStructureServiceImpl.java

@@ -581,7 +581,7 @@ public class ExamPaperStructureServiceImpl extends ServiceImpl<ExamPaperStructur
     private boolean matchObjectiveQuestion(String newQuestions, String dbQuestions) {
         List<Question> dbList = JSON.parseArray(dbQuestions, Question.class);
         if (dbList.size() == 0) {
-            return true;
+            return false;
         }
         // 旧结构没有答案,直接更新
         if (!SystemConstant.strNotNull(dbList.get(0).getAnswer())) {