【portal】获取用户公司列表,更新职务信息

dev-7.6.0-portal
fengshuonan 2023-06-15 17:18:10 +08:00
parent bdde1639d3
commit 61879c540f
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import cn.stylefeng.roses.kernel.system.api.exception.enums.user.SysUserOrgExcep
import cn.stylefeng.roses.kernel.system.api.pojo.organization.HrOrganizationDTO;
import cn.stylefeng.roses.kernel.system.api.pojo.user.SysUserOrgDTO;
import cn.stylefeng.roses.kernel.system.api.pojo.user.request.UserOrgRequest;
import cn.stylefeng.roses.kernel.system.modular.position.service.HrPositionService;
import cn.stylefeng.roses.kernel.system.modular.user.entity.SysUserOrg;
import cn.stylefeng.roses.kernel.system.modular.user.mapper.SysUserOrgMapper;
import cn.stylefeng.roses.kernel.system.modular.user.service.SysUserOrgService;
@ -66,6 +67,9 @@ public class SysUserOrgServiceServiceImpl extends ServiceImpl<SysUserOrgMapper,
@Resource
private OrganizationServiceApi organizationServiceApi;
@Resource
private HrPositionService hrPositionService;
@Override
public SysUserOrgDTO getUserOrgByUserId(Long userId) {
@ -249,6 +253,9 @@ public class SysUserOrgServiceServiceImpl extends ServiceImpl<SysUserOrgMapper,
}
}
// 填充职务信息
hrPositionService.fillDutyInfo(loginUser.getUserId(), results);
return results;
}