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

View file

@ -53,23 +53,25 @@ public class CompanyBackendGetAll extends BasicSpcexResponse {
singleItem.setUpdated(company.getUpdated());
CompanyBackendGetFields.CompanyInfoFields companyInfoFields = new CompanyBackendGetFields.CompanyInfoFields();
CompanyInfo profile = company.getProfile();
companyInfoFields.setId(profile.getId());
companyInfoFields.setCompanyId(profile.getCompanyId());
companyInfoFields.setCorporationSoleType(profile.getCorporationSoleType());
companyInfoFields.setCountryCode(profile.getCountryCode());
companyInfoFields.setDescription(profile.getDescription());
companyInfoFields.setProfessionalSign(profile.getProfessionalSign());
companyInfoFields.setLegalKind(profile.getLegalKind());
companyInfoFields.setOrganizationType(profile.getOrganizationType());
companyInfoFields.setResidence(profile.getResidence());
companyInfoFields.setShortName(profile.getShortName());
companyInfoFields.setFullName(profile.getFullName());
companyInfoFields.setShortNameEng(profile.getShortNameEng());
companyInfoFields.setFullNameEng(profile.getFullNameEng());
companyInfoFields.setTradingCode(profile.getTradingCode());
companyInfoFields.setClearingCode(profile.getClearingCode());
companyInfoFields.setRegistrationCode(profile.getRegistrationCode());
singleItem.setProfile(companyInfoFields);
if (profile != null) {
companyInfoFields.setId(profile.getId());
companyInfoFields.setCompanyId(profile.getCompanyId());
companyInfoFields.setCorporationSoleType(profile.getCorporationSoleType());
companyInfoFields.setCountryCode(profile.getCountryCode());
companyInfoFields.setDescription(profile.getDescription());
companyInfoFields.setProfessionalSign(profile.getProfessionalSign());
companyInfoFields.setLegalKind(profile.getLegalKind());
companyInfoFields.setOrganizationType(profile.getOrganizationType());
companyInfoFields.setResidence(profile.getResidence());
companyInfoFields.setShortName(profile.getShortName());
companyInfoFields.setFullName(profile.getFullName());
companyInfoFields.setShortNameEng(profile.getShortNameEng());
companyInfoFields.setFullNameEng(profile.getFullNameEng());
companyInfoFields.setTradingCode(profile.getTradingCode());
companyInfoFields.setClearingCode(profile.getClearingCode());
companyInfoFields.setRegistrationCode(profile.getRegistrationCode());
singleItem.setProfile(companyInfoFields);
}
payload.getItems().add(singleItem);
}
}