代码生成:增加更全的 tree 场景下的新增/修改校验

This commit is contained in:
YunaiV
2023-11-16 20:01:44 +08:00
parent f5ea270be3
commit 01a55b93c2
7 changed files with 99 additions and 10 deletions

View File

@ -141,7 +141,7 @@ public class DeptServiceImpl implements DeptService {
if (dept == null) {
return;
}
// 如果 id 为空,说明不用比较是否为相同 id 的岗位
// 如果 id 为空,说明不用比较是否为相同 id 的部门
if (id == null) {
throw exception(DEPT_NAME_DUPLICATE);
}