|
@@ -222,8 +222,10 @@ public class SysDeptServiceImpl extends JoinServiceImpl<SysDeptMapper, SysDept>
|
|
|
if (!UserConstants.DEPT_NORMAL.equals(info.getStatus())) {
|
|
|
throw new ServiceException("部门停用,不允许新增");
|
|
|
}
|
|
|
+ dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
|
|
|
+ } else {
|
|
|
+ dept.setAncestors("0,100");
|
|
|
}
|
|
|
- dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
|
|
|
return deptMapper.insertDept(dept);
|
|
|
}
|
|
|
|