|
|
@@ -486,9 +486,11 @@ public class KxsUserServiceImpl extends ServiceImpl<KxsUserMapper, KxsUser> impl
|
|
|
|
|
|
builder.meInfo(SysParentUserInfoVO.builder().userCode(meUser.getUserCode()).username(meUser.getUsername()).build());
|
|
|
List<String> pidPath = Arrays.asList(meUser.getPidPath().split(StrUtil.COMMA));
|
|
|
+ //查询上级信息是需要加入自己
|
|
|
+ pidPath.add(String.valueOf(meUser.getId()));
|
|
|
+ //倒序
|
|
|
Collections.reverse(pidPath);
|
|
|
|
|
|
- //查询上级
|
|
|
KxsUser parentUser = getById(meUser.getPid());
|
|
|
if(parentUser != null){
|
|
|
builder.parentInfo(SysParentUserInfoVO.builder().userCode(parentUser.getUserCode()).username(parentUser.getUsername()).build());
|