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