mirror of https://gitee.com/stylefeng/roses
【8.0】【sys】更新数据错误的null问题
parent
201a24155e
commit
646255c8f7
|
@ -191,6 +191,9 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
|
||||||
// 将每个机构的公司名称返回
|
// 将每个机构的公司名称返回
|
||||||
for (HrOrganization hrOrganization : sysRolePage.getRecords()) {
|
for (HrOrganization hrOrganization : sysRolePage.getRecords()) {
|
||||||
CompanyDeptDTO companyInfo = this.getOrgCompanyInfo(hrOrganization);
|
CompanyDeptDTO companyInfo = this.getOrgCompanyInfo(hrOrganization);
|
||||||
|
if (companyInfo == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
hrOrganization.setCompanyName(companyInfo.getCompanyName());
|
hrOrganization.setCompanyName(companyInfo.getCompanyName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue