http://jira.mfd.msk:8088/browse/CLS-259 добавил platform-enum, поправил поля в CompanyNewRequest
This commit is contained in:
parent
93664b6ef5
commit
53a5d25cd9
4 changed files with 48 additions and 3 deletions
|
|
@ -3,7 +3,8 @@ package ru.spcex.platform.enumeration;
|
|||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||
|
||||
public enum CompanySymbol implements IEnumKey {
|
||||
INN("INN"), BIC("BIC");
|
||||
INN("INN"), BIC("BIC"),
|
||||
TRDC("TRDC"), CLRC("CLRC"), RGRC("RGRC");
|
||||
|
||||
private final String key;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
package ru.spcex.platform.enumeration;
|
||||
|
||||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||
|
||||
public enum ServiceProduct implements IEnumKey {
|
||||
PRNT("PRNT"), // Расчет обязательств с процентом
|
||||
ZERO("ZERO") // Расчет обязательств без процента (по умолчанию)
|
||||
;
|
||||
|
||||
private final String key;
|
||||
|
||||
ServiceProduct(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
|
@ -24,6 +24,7 @@ public interface Consts {
|
|||
String DESTINATION_COMPANY_NEW = "company-new";
|
||||
String DESTINATION_COMPANY_DELETE = "company-delete";
|
||||
String DESTINATION_COMPANY_UPDATE = "company-update";
|
||||
String DESTINATION_COMPANY_BLOCK = "company-block";
|
||||
String DESTINATION_COMPANY_INFO_UPDATE = "company-info-update";
|
||||
String DESTINATION_COMPANY_SYMBOL_UPDATE = "company-symbol-update";
|
||||
String DESTINATION_CONTACT_UPDATE = "contact-update";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,15 @@ public class CompanyNewRequest {
|
|||
private String shortName;
|
||||
@JsonProperty
|
||||
private String fullName;
|
||||
|
||||
@JsonProperty
|
||||
private String companySymbol;
|
||||
@JsonProperty
|
||||
private String companySymbolValue;
|
||||
@JsonProperty
|
||||
private String workflowStatus;
|
||||
|
||||
//todo deprecated 3 field:
|
||||
@JsonProperty
|
||||
private String tradingCode;
|
||||
@JsonProperty
|
||||
|
|
@ -17,8 +26,6 @@ public class CompanyNewRequest {
|
|||
// for update, todo разобраться, это тот же тип запроса или надо отдельный на update сделать?
|
||||
@JsonProperty
|
||||
private Long id;
|
||||
@JsonProperty
|
||||
private String workflowStatus;
|
||||
|
||||
public String getShortName() {
|
||||
return shortName;
|
||||
|
|
@ -60,6 +67,22 @@ public class CompanyNewRequest {
|
|||
this.registrationCode = registrationCode;
|
||||
}
|
||||
|
||||
public String getCompanySymbol() {
|
||||
return companySymbol;
|
||||
}
|
||||
|
||||
public void setCompanySymbol(String companySymbol) {
|
||||
this.companySymbol = companySymbol;
|
||||
}
|
||||
|
||||
public String getCompanySymbolValue() {
|
||||
return companySymbolValue;
|
||||
}
|
||||
|
||||
public void setCompanySymbolValue(String companySymbolValue) {
|
||||
this.companySymbolValue = companySymbolValue;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue