Merge remote-tracking branch 'origin/dev_2.1.0' into dev_2.1.0

dev_2.1.0
liu 1 year ago
commit a277a62521

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