http://jira.mfd.msk:8088/browse/CLS-75 company controller nlp fix
This commit is contained in:
parent
25cbd0e47e
commit
5beea2d551
1 changed files with 19 additions and 17 deletions
|
|
@ -53,6 +53,7 @@ public class CompanyBackendGetAll extends BasicSpcexResponse {
|
|||
singleItem.setUpdated(company.getUpdated());
|
||||
CompanyBackendGetFields.CompanyInfoFields companyInfoFields = new CompanyBackendGetFields.CompanyInfoFields();
|
||||
CompanyInfo profile = company.getProfile();
|
||||
if (profile != null) {
|
||||
companyInfoFields.setId(profile.getId());
|
||||
companyInfoFields.setCompanyId(profile.getCompanyId());
|
||||
companyInfoFields.setCorporationSoleType(profile.getCorporationSoleType());
|
||||
|
|
@ -70,6 +71,7 @@ public class CompanyBackendGetAll extends BasicSpcexResponse {
|
|||
companyInfoFields.setClearingCode(profile.getClearingCode());
|
||||
companyInfoFields.setRegistrationCode(profile.getRegistrationCode());
|
||||
singleItem.setProfile(companyInfoFields);
|
||||
}
|
||||
payload.getItems().add(singleItem);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue