he2802 hace 2 años
padre
commit
9c4f42227d

+ 5 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/QuestionServiceImpl.java

@@ -785,6 +785,11 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
                             Map<String,Object> rs = getOptionsList(startIndex,question.getQuestionList(),type);
                             bo.setOptionsList((List<QuestionChildAddBo>)rs.get("optionsList"));
                             bo.setAnswerQuestion((String) rs.get("answerStr"));
+                            if(Validator.isEmpty(bo.getAnswerQuestion())){
+                                question.setCause("题目答案错误");
+                                errorList.add(question);
+                                continue;
+                            }
                         }
                         if(type==3){ //判断题
                             if(vo.getOption().equals("正确")&&vo.getAnswer().equals("是")){