|
|
|
@ -140,6 +140,11 @@ public class AskQuestionLibraryManageServiceImpl implements AskQuestionLibraryMa
|
|
|
|
|
Assert.notEmpty(askTemplateQuestionLibrary.getId(),"id不能为空");
|
|
|
|
|
|
|
|
|
|
assertSave(askTemplateQuestionLibrary);
|
|
|
|
|
// 不允许修改类目
|
|
|
|
|
AskTemplateQuestionLibrary library = askTemplateQuestionLibraryService.getById(askTemplateQuestionLibrary.getId());
|
|
|
|
|
Assert.notNull(library,"知识库不存在");
|
|
|
|
|
Assert.isTrue(askTemplateQuestionLibrary.getDictId().equals(library.getDictId()),"不允许修改类目");
|
|
|
|
|
|
|
|
|
|
this.saveQuestionLibrary(askTemplateQuestionLibrary);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|