manage : 知识库不允许修改类目

dev_2.1.0
xueqingkun 1 year ago
parent 1c502b45dd
commit a3dffff162

@ -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;
}

Loading…
Cancel
Save