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,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue