mirror of https://gitee.com/stylefeng/roses
【portal】获取用户公司列表,更新职务信息
parent
bdde1639d3
commit
61879c540f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue