mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 部门等级字段
This commit is contained in:
@@ -191,6 +191,10 @@ public class SysDeptServiceImpl implements SysDeptService {
|
||||
throw new ServiceException("部门停用,不允许新增");
|
||||
}
|
||||
dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
|
||||
// 更新deptLevel字段
|
||||
if (StringUtils.isNotBlank(info.getDeptLevel())) {
|
||||
dept.setDeptLevel(String.valueOf(Integer.parseInt(info.getDeptLevel()) + 1));
|
||||
}
|
||||
return deptMapper.insertDept(dept);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user