|
@@ -2763,6 +2763,11 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
businessItemList.add(businessAddBo);
|
|
|
|
|
|
for(QuestionAddBo addBo : list1){
|
|
|
+ if(addBo.getType()==1||addBo.getType()==2){
|
|
|
+ if(Validator.isEmpty(addBo.getAnswerQuestion())){
|
|
|
+ throw new CustomException("答案错误");
|
|
|
+ }
|
|
|
+ }
|
|
|
addBo.setCode(importCode);
|
|
|
|
|
|
addBo.setBusinessList(businessItemList);
|