修复更新顶级部门信息时报错问题
This commit is contained in:
parent
f765dbc2f6
commit
ac404e7c89
|
|
@ -60,7 +60,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|||
/**
|
||||
* 查询部门管理树(排除下级)
|
||||
*
|
||||
* @param deptId 部门ID
|
||||
* @param dept 部门
|
||||
* @return 所有部门信息
|
||||
*/
|
||||
@Override
|
||||
|
|
@ -243,9 +243,11 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|||
private void updateParentDeptStatusNormal(SysDept dept)
|
||||
{
|
||||
String ancestors = dept.getAncestors();
|
||||
if(org.apache.commons.lang3.StringUtils.isNotBlank(ancestors)) {
|
||||
Long[] deptIds = Convert.toLongArray(ancestors);
|
||||
deptMapper.updateDeptStatusNormal(deptIds);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改子元素关系
|
||||
|
|
|
|||
Loading…
Reference in New Issue