mirror of https://gitee.com/stylefeng/roses
【7.6.0】【user】获取用户信息,返回orgId
parent
a36c7f0c5b
commit
3c90fcf0af
|
@ -930,7 +930,10 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||||
sysUserOrgLambdaQueryWrapper.eq(SysUserOrg::getUserId, userId);
|
sysUserOrgLambdaQueryWrapper.eq(SysUserOrg::getUserId, userId);
|
||||||
SysUserOrg one = sysUserOrgService.getOne(sysUserOrgLambdaQueryWrapper, false);
|
SysUserOrg one = sysUserOrgService.getOne(sysUserOrgLambdaQueryWrapper, false);
|
||||||
if (one != null) {
|
if (one != null) {
|
||||||
|
|
||||||
Long orgId = one.getOrgId();
|
Long orgId = one.getOrgId();
|
||||||
|
result.setOrgId(orgId);
|
||||||
|
|
||||||
HrOrganizationDTO orgDetail = this.organizationServiceApi.getOrgDetail(orgId);
|
HrOrganizationDTO orgDetail = this.organizationServiceApi.getOrgDetail(orgId);
|
||||||
if (orgDetail != null) {
|
if (orgDetail != null) {
|
||||||
String orgName = orgDetail.getOrgName();
|
String orgName = orgDetail.getOrgName();
|
||||||
|
|
Loading…
Reference in New Issue