mirror of https://gitee.com/stylefeng/roses
【7.6.0】解决获取用户组织机构,查询到组织机构为空的情况
parent
dc936e2e2a
commit
656e2573bf
|
@ -248,6 +248,9 @@ public class SysUserOrgServiceServiceImpl extends ServiceImpl<SysUserOrgMapper,
|
||||||
|
|
||||||
// 获取用户的公司信息
|
// 获取用户的公司信息
|
||||||
HrOrganizationDTO companyInfo = organizationServiceApi.getOrgCompanyInfo(sysUserOrg.getOrgId());
|
HrOrganizationDTO companyInfo = organizationServiceApi.getOrgCompanyInfo(sysUserOrg.getOrgId());
|
||||||
|
if (companyInfo == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (currentCompanyInfo.getOrgId().equals(companyInfo.getOrgId())) {
|
if (currentCompanyInfo.getOrgId().equals(companyInfo.getOrgId())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue