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