This commit is contained in:
ialbert 2022-10-10 14:48:30 +03:00
parent 25cbd0e47e
commit 5beea2d551

View file

@ -53,6 +53,7 @@ public class CompanyBackendGetAll extends BasicSpcexResponse {
singleItem.setUpdated(company.getUpdated()); singleItem.setUpdated(company.getUpdated());
CompanyBackendGetFields.CompanyInfoFields companyInfoFields = new CompanyBackendGetFields.CompanyInfoFields(); CompanyBackendGetFields.CompanyInfoFields companyInfoFields = new CompanyBackendGetFields.CompanyInfoFields();
CompanyInfo profile = company.getProfile(); CompanyInfo profile = company.getProfile();
if (profile != null) {
companyInfoFields.setId(profile.getId()); companyInfoFields.setId(profile.getId());
companyInfoFields.setCompanyId(profile.getCompanyId()); companyInfoFields.setCompanyId(profile.getCompanyId());
companyInfoFields.setCorporationSoleType(profile.getCorporationSoleType()); companyInfoFields.setCorporationSoleType(profile.getCorporationSoleType());
@ -70,6 +71,7 @@ public class CompanyBackendGetAll extends BasicSpcexResponse {
companyInfoFields.setClearingCode(profile.getClearingCode()); companyInfoFields.setClearingCode(profile.getClearingCode());
companyInfoFields.setRegistrationCode(profile.getRegistrationCode()); companyInfoFields.setRegistrationCode(profile.getRegistrationCode());
singleItem.setProfile(companyInfoFields); singleItem.setProfile(companyInfoFields);
}
payload.getItems().add(singleItem); payload.getItems().add(singleItem);
} }
} }