【7.6.0】【user】获取用户信息,返回orgId

dev-7.6.0-ds
fengshuonan 2023-04-26 17:47:43 +08:00
parent a36c7f0c5b
commit 3c90fcf0af
1 changed files with 3 additions and 0 deletions

View File

@ -930,7 +930,10 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> 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();