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;
|
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||||
|
|
||||||
public enum CompanySymbol implements IEnumKey {
|
public enum CompanySymbol implements IEnumKey {
|
||||||
INN("INN"), BIC("BIC");
|
INN("INN"), BIC("BIC"),
|
||||||
|
TRDC("TRDC"), CLRC("CLRC"), RGRC("RGRC");
|
||||||
|
|
||||||
private final String key;
|
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_NEW = "company-new";
|
||||||
String DESTINATION_COMPANY_DELETE = "company-delete";
|
String DESTINATION_COMPANY_DELETE = "company-delete";
|
||||||
String DESTINATION_COMPANY_UPDATE = "company-update";
|
String DESTINATION_COMPANY_UPDATE = "company-update";
|
||||||
|
String DESTINATION_COMPANY_BLOCK = "company-block";
|
||||||
String DESTINATION_COMPANY_INFO_UPDATE = "company-info-update";
|
String DESTINATION_COMPANY_INFO_UPDATE = "company-info-update";
|
||||||
String DESTINATION_COMPANY_SYMBOL_UPDATE = "company-symbol-update";
|
String DESTINATION_COMPANY_SYMBOL_UPDATE = "company-symbol-update";
|
||||||
String DESTINATION_CONTACT_UPDATE = "contact-update";
|
String DESTINATION_CONTACT_UPDATE = "contact-update";
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,15 @@ public class CompanyNewRequest {
|
||||||
private String shortName;
|
private String shortName;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String fullName;
|
private String fullName;
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private String companySymbol;
|
||||||
|
@JsonProperty
|
||||||
|
private String companySymbolValue;
|
||||||
|
@JsonProperty
|
||||||
|
private String workflowStatus;
|
||||||
|
|
||||||
|
//todo deprecated 3 field:
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String tradingCode;
|
private String tradingCode;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|
@ -17,8 +26,6 @@ public class CompanyNewRequest {
|
||||||
// for update, todo разобраться, это тот же тип запроса или надо отдельный на update сделать?
|
// for update, todo разобраться, это тот же тип запроса или надо отдельный на update сделать?
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private Long id;
|
private Long id;
|
||||||
@JsonProperty
|
|
||||||
private String workflowStatus;
|
|
||||||
|
|
||||||
public String getShortName() {
|
public String getShortName() {
|
||||||
return shortName;
|
return shortName;
|
||||||
|
|
@ -60,6 +67,22 @@ public class CompanyNewRequest {
|
||||||
this.registrationCode = registrationCode;
|
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() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue