diff --git a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java index 7231fbbb7..db632760c 100644 --- a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java +++ b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/service/impl/SysUserServiceImpl.java @@ -930,7 +930,10 @@ public class SysUserServiceImpl extends ServiceImpl impl sysUserOrgLambdaQueryWrapper.eq(SysUserOrg::getUserId, userId); SysUserOrg one = sysUserOrgService.getOne(sysUserOrgLambdaQueryWrapper, false); if (one != null) { + Long orgId = one.getOrgId(); + result.setOrgId(orgId); + HrOrganizationDTO orgDetail = this.organizationServiceApi.getOrgDetail(orgId); if (orgDetail != null) { String orgName = orgDetail.getOrgName();