mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
禅道#948问题修复
This commit is contained in:
-4
@@ -200,10 +200,6 @@ public class DeptServiceImpl implements DeptService {
|
|||||||
// 2.1 父部门状态校验
|
// 2.1 父部门状态校验
|
||||||
checkParentStatus(parentDept.getStatus(), parentDept.getName());
|
checkParentStatus(parentDept.getStatus(), parentDept.getName());
|
||||||
|
|
||||||
// 3. 递归校验父部门,如果父部门是自己的子部门,则报错,避免形成环路
|
|
||||||
if (id == null) { // id 为空,说明新增,不需要考虑环路
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < Short.MAX_VALUE; i++) {
|
for (int i = 0; i < Short.MAX_VALUE; i++) {
|
||||||
// 3.1 校验环路
|
// 3.1 校验环路
|
||||||
parentId = parentDept.getParentId();
|
parentId = parentDept.getParentId();
|
||||||
|
|||||||
Reference in New Issue
Block a user