Company GET format
This commit is contained in:
parent
c8f856fbed
commit
20bbf515ff
2 changed files with 280 additions and 194 deletions
|
|
@ -51,26 +51,22 @@ public class CompanyBackendGetAll extends BasicSpcexResponse {
|
||||||
singleItem.setFullName(company.getFullName());
|
singleItem.setFullName(company.getFullName());
|
||||||
singleItem.setCreated(company.getCreated());
|
singleItem.setCreated(company.getCreated());
|
||||||
singleItem.setUpdated(company.getUpdated());
|
singleItem.setUpdated(company.getUpdated());
|
||||||
CompanyBackendGetFields.CompanyInfoFields companyInfoFields = new CompanyBackendGetFields.CompanyInfoFields();
|
|
||||||
CompanyInfo profile = company.getProfile();
|
CompanyInfo profile = company.getProfile();
|
||||||
if (profile != null) {
|
if (profile != null) {
|
||||||
companyInfoFields.setId(profile.getId());
|
singleItem.setCorporationSoleType(profile.getCorporationSoleType());
|
||||||
companyInfoFields.setCompanyId(profile.getCompanyId());
|
singleItem.setCountryCode(profile.getCountryCode());
|
||||||
companyInfoFields.setCorporationSoleType(profile.getCorporationSoleType());
|
singleItem.setDescription(profile.getDescription());
|
||||||
companyInfoFields.setCountryCode(profile.getCountryCode());
|
singleItem.setProfessionalSign(profile.getProfessionalSign());
|
||||||
companyInfoFields.setDescription(profile.getDescription());
|
singleItem.setLegalKind(profile.getLegalKind());
|
||||||
companyInfoFields.setProfessionalSign(profile.getProfessionalSign());
|
singleItem.setOrganizationType(profile.getOrganizationType());
|
||||||
companyInfoFields.setLegalKind(profile.getLegalKind());
|
singleItem.setResidence(profile.getResidence());
|
||||||
companyInfoFields.setOrganizationType(profile.getOrganizationType());
|
singleItem.setShortName(profile.getShortName());
|
||||||
companyInfoFields.setResidence(profile.getResidence());
|
singleItem.setFullName(profile.getFullName());
|
||||||
companyInfoFields.setShortName(profile.getShortName());
|
singleItem.setShortNameEng(profile.getShortNameEng());
|
||||||
companyInfoFields.setFullName(profile.getFullName());
|
singleItem.setFullNameEng(profile.getFullNameEng());
|
||||||
companyInfoFields.setShortNameEng(profile.getShortNameEng());
|
singleItem.setTradingCode(profile.getTradingCode());
|
||||||
companyInfoFields.setFullNameEng(profile.getFullNameEng());
|
singleItem.setClearingCode(profile.getClearingCode());
|
||||||
companyInfoFields.setTradingCode(profile.getTradingCode());
|
singleItem.setRegistrationCode(profile.getRegistrationCode());
|
||||||
companyInfoFields.setClearingCode(profile.getClearingCode());
|
|
||||||
companyInfoFields.setRegistrationCode(profile.getRegistrationCode());
|
|
||||||
singleItem.setProfile(companyInfoFields);
|
|
||||||
}
|
}
|
||||||
payload.getItems().add(singleItem);
|
payload.getItems().add(singleItem);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,25 @@ public class CompanyBackendGetFields {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private Instant updated;
|
private Instant updated;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private CompanyInfoFields profile;
|
private String clearingMemberCategory; // ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String corporationSoleType; // ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String countryCode; //ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String description;
|
||||||
|
@JsonProperty
|
||||||
|
private String professionalSign; // ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String legalKind; // ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String organizationType; // ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String residence; // ref CHAR(4),
|
||||||
|
@JsonProperty
|
||||||
|
private String shortNameEng;
|
||||||
|
@JsonProperty
|
||||||
|
private String fullNameEng;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
|
|
@ -102,184 +120,256 @@ public class CompanyBackendGetFields {
|
||||||
this.updated = updated;
|
this.updated = updated;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CompanyInfoFields getProfile() {
|
public String getClearingMemberCategory() {
|
||||||
return profile;
|
return clearingMemberCategory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProfile(CompanyInfoFields profile) {
|
public void setClearingMemberCategory(String clearingMemberCategory) {
|
||||||
this.profile = profile;
|
this.clearingMemberCategory = clearingMemberCategory;
|
||||||
}
|
}
|
||||||
|
|
||||||
static class CompanyInfoFields {
|
public String getCorporationSoleType() {
|
||||||
@JsonProperty
|
return corporationSoleType;
|
||||||
private Long id;
|
|
||||||
@JsonProperty
|
|
||||||
private Long companyId; // Company.CompanyInfo.companyId = CompanyInfo.id
|
|
||||||
@JsonProperty
|
|
||||||
private String clearingMemberCategory; // ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String corporationSoleType; // ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String countryCode; //ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String description;
|
|
||||||
@JsonProperty
|
|
||||||
private String professionalSign; // ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String legalKind; // ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String organizationType; // ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String residence; // ref CHAR(4),
|
|
||||||
@JsonProperty
|
|
||||||
private String shortName;
|
|
||||||
@JsonProperty
|
|
||||||
private String fullName;
|
|
||||||
@JsonProperty
|
|
||||||
private String shortNameEng;
|
|
||||||
@JsonProperty
|
|
||||||
private String fullNameEng;
|
|
||||||
@JsonProperty
|
|
||||||
private String tradingCode;
|
|
||||||
@JsonProperty
|
|
||||||
private String clearingCode;
|
|
||||||
@JsonProperty
|
|
||||||
private String registrationCode;
|
|
||||||
|
|
||||||
public Long getCompanyId() {
|
|
||||||
return companyId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCompanyId(Long companyId) {
|
|
||||||
this.companyId = companyId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getClearingMemberCategory() {
|
|
||||||
return clearingMemberCategory;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setClearingMemberCategory(String clearingMemberCategory) {
|
|
||||||
this.clearingMemberCategory = clearingMemberCategory;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCorporationSoleType() {
|
|
||||||
return corporationSoleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCorporationSoleType(String corporationSoleType) {
|
|
||||||
this.corporationSoleType = corporationSoleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCountryCode() {
|
|
||||||
return countryCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCountryCode(String countryCode) {
|
|
||||||
this.countryCode = countryCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getProfessionalSign() {
|
|
||||||
return professionalSign;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProfessionalSign(String professionalSign) {
|
|
||||||
this.professionalSign = professionalSign;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLegalKind() {
|
|
||||||
return legalKind;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLegalKind(String legalKind) {
|
|
||||||
this.legalKind = legalKind;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrganizationType() {
|
|
||||||
return organizationType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrganizationType(String organizationType) {
|
|
||||||
this.organizationType = organizationType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getResidence() {
|
|
||||||
return residence;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setResidence(String residence) {
|
|
||||||
this.residence = residence;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getShortName() {
|
|
||||||
return shortName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShortName(String shortName) {
|
|
||||||
this.shortName = shortName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFullName() {
|
|
||||||
return fullName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFullName(String fullName) {
|
|
||||||
this.fullName = fullName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getShortNameEng() {
|
|
||||||
return shortNameEng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShortNameEng(String shortNameEng) {
|
|
||||||
this.shortNameEng = shortNameEng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFullNameEng() {
|
|
||||||
return fullNameEng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFullNameEng(String fullNameEng) {
|
|
||||||
this.fullNameEng = fullNameEng;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTradingCode() {
|
|
||||||
return tradingCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTradingCode(String tradingCode) {
|
|
||||||
this.tradingCode = tradingCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getClearingCode() {
|
|
||||||
return clearingCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setClearingCode(String clearingCode) {
|
|
||||||
this.clearingCode = clearingCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRegistrationCode() {
|
|
||||||
return registrationCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRegistrationCode(String registrationCode) {
|
|
||||||
this.registrationCode = registrationCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setCorporationSoleType(String corporationSoleType) {
|
||||||
|
this.corporationSoleType = corporationSoleType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCountryCode() {
|
||||||
|
return countryCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCountryCode(String countryCode) {
|
||||||
|
this.countryCode = countryCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProfessionalSign() {
|
||||||
|
return professionalSign;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProfessionalSign(String professionalSign) {
|
||||||
|
this.professionalSign = professionalSign;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLegalKind() {
|
||||||
|
return legalKind;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLegalKind(String legalKind) {
|
||||||
|
this.legalKind = legalKind;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrganizationType() {
|
||||||
|
return organizationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrganizationType(String organizationType) {
|
||||||
|
this.organizationType = organizationType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResidence() {
|
||||||
|
return residence;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResidence(String residence) {
|
||||||
|
this.residence = residence;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShortNameEng() {
|
||||||
|
return shortNameEng;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShortNameEng(String shortNameEng) {
|
||||||
|
this.shortNameEng = shortNameEng;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFullNameEng() {
|
||||||
|
return fullNameEng;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFullNameEng(String fullNameEng) {
|
||||||
|
this.fullNameEng = fullNameEng;
|
||||||
|
}
|
||||||
|
|
||||||
|
// static class CompanyInfoFields {
|
||||||
|
// @JsonProperty
|
||||||
|
// private Long id;
|
||||||
|
// @JsonProperty
|
||||||
|
// private Long companyId; // Company.CompanyInfo.companyId = CompanyInfo.id
|
||||||
|
// @JsonProperty
|
||||||
|
// private String clearingMemberCategory; // ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String corporationSoleType; // ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String countryCode; //ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String description;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String professionalSign; // ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String legalKind; // ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String organizationType; // ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String residence; // ref CHAR(4),
|
||||||
|
// @JsonProperty
|
||||||
|
// private String shortName;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String fullName;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String shortNameEng;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String fullNameEng;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String tradingCode;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String clearingCode;
|
||||||
|
// @JsonProperty
|
||||||
|
// private String registrationCode;
|
||||||
|
//
|
||||||
|
// public Long getCompanyId() {
|
||||||
|
// return companyId;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setCompanyId(Long companyId) {
|
||||||
|
// this.companyId = companyId;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getClearingMemberCategory() {
|
||||||
|
// return clearingMemberCategory;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setClearingMemberCategory(String clearingMemberCategory) {
|
||||||
|
// this.clearingMemberCategory = clearingMemberCategory;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getCorporationSoleType() {
|
||||||
|
// return corporationSoleType;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setCorporationSoleType(String corporationSoleType) {
|
||||||
|
// this.corporationSoleType = corporationSoleType;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getCountryCode() {
|
||||||
|
// return countryCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setCountryCode(String countryCode) {
|
||||||
|
// this.countryCode = countryCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getDescription() {
|
||||||
|
// return description;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setDescription(String description) {
|
||||||
|
// this.description = description;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getProfessionalSign() {
|
||||||
|
// return professionalSign;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setProfessionalSign(String professionalSign) {
|
||||||
|
// this.professionalSign = professionalSign;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getLegalKind() {
|
||||||
|
// return legalKind;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setLegalKind(String legalKind) {
|
||||||
|
// this.legalKind = legalKind;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getOrganizationType() {
|
||||||
|
// return organizationType;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setOrganizationType(String organizationType) {
|
||||||
|
// this.organizationType = organizationType;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getResidence() {
|
||||||
|
// return residence;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setResidence(String residence) {
|
||||||
|
// this.residence = residence;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getShortName() {
|
||||||
|
// return shortName;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setShortName(String shortName) {
|
||||||
|
// this.shortName = shortName;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getFullName() {
|
||||||
|
// return fullName;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setFullName(String fullName) {
|
||||||
|
// this.fullName = fullName;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getShortNameEng() {
|
||||||
|
// return shortNameEng;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setShortNameEng(String shortNameEng) {
|
||||||
|
// this.shortNameEng = shortNameEng;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getFullNameEng() {
|
||||||
|
// return fullNameEng;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setFullNameEng(String fullNameEng) {
|
||||||
|
// this.fullNameEng = fullNameEng;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getTradingCode() {
|
||||||
|
// return tradingCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setTradingCode(String tradingCode) {
|
||||||
|
// this.tradingCode = tradingCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getClearingCode() {
|
||||||
|
// return clearingCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setClearingCode(String clearingCode) {
|
||||||
|
// this.clearingCode = clearingCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public String getRegistrationCode() {
|
||||||
|
// return registrationCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setRegistrationCode(String registrationCode) {
|
||||||
|
// this.registrationCode = registrationCode;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public Long getId() {
|
||||||
|
// return id;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setId(Long id) {
|
||||||
|
// this.id = id;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue