|
|
|
@ -92,11 +92,11 @@ public class AskQuestionLibraryManageServiceImpl implements AskQuestionLibraryMa
|
|
|
|
|
List<String> question = one.getQuestion();
|
|
|
|
|
if (CollUtil.isEmpty(question)){
|
|
|
|
|
question = CollUtil.newArrayList(askTemplateQuestionLibrary.getDescription());
|
|
|
|
|
one.setDefaultAnswer(askTemplateQuestionLibrary.getDefaultAnswer());
|
|
|
|
|
}else if (!question.contains(askTemplateQuestionLibrary.getDescription())){
|
|
|
|
|
question.add(askTemplateQuestionLibrary.getDescription());
|
|
|
|
|
}
|
|
|
|
|
one.setQuestion(question);
|
|
|
|
|
one.setDefaultAnswer(askTemplateQuestionLibrary.getDefaultAnswer());
|
|
|
|
|
askTemplateQuestionLibraryService.updateById(one);
|
|
|
|
|
return one.getId();
|
|
|
|
|
}else {
|
|
|
|
|