|
|
@ -104,7 +104,7 @@ public class QuestionsServiceImpl extends ServiceImpl<QuestionsDao, QuestionsEnt |
|
|
|
|
|
|
|
|
|
|
|
PageUtils questionsPage = new PageUtils(questionsIPage); |
|
|
|
PageUtils questionsPage = new PageUtils(questionsIPage); |
|
|
|
|
|
|
|
|
|
|
|
new PageUtils(questionsIPage).setList(questions); |
|
|
|
questionsPage.setList(questions); |
|
|
|
|
|
|
|
|
|
|
|
return questionsPage; |
|
|
|
return questionsPage; |
|
|
|
} |
|
|
|
} |
|
|
@ -234,7 +234,7 @@ public class QuestionsServiceImpl extends ServiceImpl<QuestionsDao, QuestionsEnt |
|
|
|
} else if (questionType.equals(Constant.QuestionType.TRUE_OR_FALSE.getDesc())) { |
|
|
|
} else if (questionType.equals(Constant.QuestionType.TRUE_OR_FALSE.getDesc())) { |
|
|
|
//判断题
|
|
|
|
//判断题
|
|
|
|
questionsEntity.setQuestionTypeNo(Constant.QuestionType.TRUE_OR_FALSE.getType()); |
|
|
|
questionsEntity.setQuestionTypeNo(Constant.QuestionType.TRUE_OR_FALSE.getType()); |
|
|
|
} else {// 判断题型是否不存在。。。
|
|
|
|
} else {// 判断题型是否不存在
|
|
|
|
//说明题型不正确
|
|
|
|
//说明题型不正确
|
|
|
|
ExceptionCast.cast(CommonCode.QUESTIONTYPE_INVALID); |
|
|
|
ExceptionCast.cast(CommonCode.QUESTIONTYPE_INVALID); |
|
|
|
} |
|
|
|
} |
|
|
|