Commit 91b71112 authored by 施翔轲's avatar 施翔轲

修复组织详情中负责人显示不正确的问题

parent aeec86d1
...@@ -123,6 +123,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService { ...@@ -123,6 +123,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
SysDept parentDept = baseMapper.selectOne(new LambdaQueryWrapper<SysDept>() SysDept parentDept = baseMapper.selectOne(new LambdaQueryWrapper<SysDept>()
.select(SysDept::getDeptName).eq(SysDept::getDeptId, dept.getParentId())); .select(SysDept::getDeptName).eq(SysDept::getDeptId, dept.getParentId()));
dept.setParentName(ObjectUtil.isNotNull(parentDept) ? parentDept.getDeptName() : null); dept.setParentName(ObjectUtil.isNotNull(parentDept) ? parentDept.getDeptName() : null);
SysUser sysUser = userMapper.selectById(dept.getLeader());
dept.setLeader(ObjectUtil.isNotNull(sysUser) ? sysUser.getNickName() : null);
return dept; return dept;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment