This commit is contained in:
parent
2a365606fa
commit
39655fefd0
3 changed files with 134 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ public class RatesNewAction implements IAction<RatesNewRequest> {
|
||||||
private LocalDate valueDate;
|
private LocalDate valueDate;
|
||||||
@ApiModelProperty(value = "Валюта.", example = "1234")
|
@ApiModelProperty(value = "Валюта.", example = "1234")
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private Long currencyPairId;
|
private Long currencyId;
|
||||||
@ApiModelProperty(value = "Статус.", example = "1234")
|
@ApiModelProperty(value = "Статус.", example = "1234")
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String status;
|
private String status;
|
||||||
|
|
@ -28,7 +28,7 @@ public class RatesNewAction implements IAction<RatesNewRequest> {
|
||||||
RatesNewRequest request = new RatesNewRequest();
|
RatesNewRequest request = new RatesNewRequest();
|
||||||
request.setValue(this.value);
|
request.setValue(this.value);
|
||||||
request.setValueDate(this.valueDate);
|
request.setValueDate(this.valueDate);
|
||||||
request.setCurrencyId(this.currencyPairId);
|
request.setCurrencyId(this.currencyId);
|
||||||
request.setStatus(this.status);
|
request.setStatus(this.status);
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
|
@ -55,12 +55,12 @@ public class RatesNewAction implements IAction<RatesNewRequest> {
|
||||||
this.valueDate = valueDate;
|
this.valueDate = valueDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getCurrencyPairId() {
|
public Long getCurrencyId() {
|
||||||
return currencyPairId;
|
return currencyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrencyPairId(Long currencyPairId) {
|
public void setCurrencyId(Long currencyPairId) {
|
||||||
this.currencyPairId = currencyPairId;
|
this.currencyId = currencyPairId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStatus() {
|
public String getStatus() {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"version": "3.15.206.105",
|
"version": "3.15.206.106",
|
||||||
|
|
||||||
"enums": {
|
"enums": {
|
||||||
|
|
||||||
|
|
@ -10578,7 +10578,57 @@
|
||||||
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
,"actions":[
|
||||||
|
{"method":"post",
|
||||||
|
|
||||||
|
"name": "Добавление параметров риска",
|
||||||
|
|
||||||
|
"confirmation": "value,settlementType,currencyPairId,status",
|
||||||
|
|
||||||
|
"class": "ru.spcex.clearing.backendapi.controller.request.cud.securities.RiskParameterNewAction",
|
||||||
|
|
||||||
|
"fields": [
|
||||||
|
{"code": "value",
|
||||||
|
"name": "Ставка","shortname": "Ставка","type": 10
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "settlementType",
|
||||||
|
"name": "Дата, на которую расчетный курс","shortname": "Дата","type": 6
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "currencyPairId",
|
||||||
|
"name": "Идентификатор валюты","shortname": "Валюта","type": 1
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "status",
|
||||||
|
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"method":"put",
|
||||||
|
|
||||||
|
"name": "Изменение параметров риска",
|
||||||
|
|
||||||
|
"confirmation": "value,status",
|
||||||
|
|
||||||
|
"class": "ru.spcex.clearing.backendapi.controller.request.cud.securities.RiskParameterUpdateAction",
|
||||||
|
|
||||||
|
"fields": [
|
||||||
|
{"code": "id",
|
||||||
|
"type": 1,"name": "Идентификатор записи","shortname": "ID","link": "riskParameter","linkCode": "id","required": true
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "value",
|
||||||
|
"name": "Ставка","shortname": "Ставка","type": 10
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "status",
|
||||||
|
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
"rates": {
|
"rates": {
|
||||||
|
|
@ -10616,7 +10666,57 @@
|
||||||
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
,"actions":[
|
||||||
|
{"method":"post",
|
||||||
|
|
||||||
|
"name": "Добавление расчетного курса",
|
||||||
|
|
||||||
|
"confirmation": "value,valueDate,currencyId,status",
|
||||||
|
|
||||||
|
"class": "ru.spcex.clearing.backendapi.controller.request.cud.securities.RatesNewAction",
|
||||||
|
|
||||||
|
"fields": [
|
||||||
|
{"code": "value",
|
||||||
|
"name": "Расчетный курс","shortname": "Расчетный курс","type": 10
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "valueDate",
|
||||||
|
"name": "Дата, на которую расчетный курс","shortname": "Дата","type": 6
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "currencyId",
|
||||||
|
"name": "Идентификатор валюты","shortname": "Валюта","type": 1
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "status",
|
||||||
|
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"method":"put",
|
||||||
|
|
||||||
|
"name": "Изменение расчетного курса",
|
||||||
|
|
||||||
|
"confirmation": "value,status",
|
||||||
|
|
||||||
|
"class": "ru.spcex.clearing.backendapi.controller.request.cud.securities.RatesUpdateAction",
|
||||||
|
|
||||||
|
"fields": [
|
||||||
|
{"code": "id",
|
||||||
|
"type": 1,"name": "Идентификатор записи","shortname": "ID","link": "rates","linkCode": "id","required": true
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "value",
|
||||||
|
"name": "Расчетный курс","shortname": "Расчетный курс","type": 10
|
||||||
|
}
|
||||||
|
,
|
||||||
|
{"code": "status",
|
||||||
|
"name": "Статус","shortname": "Секция","type": 2,"length": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--?xml-stylesheet type="text/xsl" href="\..\corp-reports\src\data\meta\meta.server.xslt"?-->
|
<!--?xml-stylesheet type="text/xsl" href="\..\corp-reports\src\data\meta\meta.server.xslt"?-->
|
||||||
<meta version="3.15.206.105">
|
<meta version="3.15.206.106">
|
||||||
<!-- _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" _xsi:noNamespaceSchemaLocation="file:///E:/d/projects/meta/from/meta.xsd" -->
|
<!-- _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" _xsi:noNamespaceSchemaLocation="file:///E:/d/projects/meta/from/meta.xsd" -->
|
||||||
<!--Здесь словари-->
|
<!--Здесь словари-->
|
||||||
<enums>
|
<enums>
|
||||||
|
|
@ -2449,6 +2449,19 @@
|
||||||
<currencyPair name="Код валютной пары" shortname="Код валютной пары" type="2" length="12"/>
|
<currencyPair name="Код валютной пары" shortname="Код валютной пары" type="2" length="12"/>
|
||||||
<currencyPairId name="Идентификатор валютной пары" shortname="Валютная пара" type="1"/>
|
<currencyPairId name="Идентификатор валютной пары" shortname="Валютная пара" type="1"/>
|
||||||
<workflowStatus name="Статус" shortname="Секция" type="2" length="4"/>
|
<workflowStatus name="Статус" shortname="Секция" type="2" length="4"/>
|
||||||
|
<actions>
|
||||||
|
<post name="Добавление параметров риска" confirmation="value,settlementType,currencyPairId,status" class="ru.spcex.clearing.backendapi.controller.request.cud.securities.RiskParameterNewAction">
|
||||||
|
<value name="Ставка" shortname="Ставка" type="10"/>
|
||||||
|
<settlementType name="Дата, на которую расчетный курс" shortname="Дата" type="6"/>
|
||||||
|
<currencyPairId name="Идентификатор валюты" shortname="Валюта" type="1"/>
|
||||||
|
<status name="Статус" shortname="Секция" type="2" length="4"/>
|
||||||
|
</post>
|
||||||
|
<put name="Изменение параметров риска" confirmation="value,status" class="ru.spcex.clearing.backendapi.controller.request.cud.securities.RiskParameterUpdateAction">
|
||||||
|
<id type="1" name="Идентификатор записи" shortname="ID" link="riskParameter" linkCode="id" required="true"/>
|
||||||
|
<value name="Ставка" shortname="Ставка" type="10"/>
|
||||||
|
<status name="Статус" shortname="Секция" type="2" length="4"/>
|
||||||
|
</put>
|
||||||
|
</actions>
|
||||||
</riskParameter>
|
</riskParameter>
|
||||||
<rates name="Расчетные курсы" destination="rates" class="ru.clearing.classes.statics.data.security.Rates" table="rates">
|
<rates name="Расчетные курсы" destination="rates" class="ru.clearing.classes.statics.data.security.Rates" table="rates">
|
||||||
<id type="1" name="Идентификатор записи" shortname="ID" searchable="true" sortable="true" visible="true"/>
|
<id type="1" name="Идентификатор записи" shortname="ID" searchable="true" sortable="true" visible="true"/>
|
||||||
|
|
@ -2457,6 +2470,19 @@
|
||||||
<currency name="Код валюты" shortname="Код валюты" type="2" length="4"/>
|
<currency name="Код валюты" shortname="Код валюты" type="2" length="4"/>
|
||||||
<currencyId name="Идентификатор валюты" shortname="Валюта" type="1"/>
|
<currencyId name="Идентификатор валюты" shortname="Валюта" type="1"/>
|
||||||
<workflowStatus name="Статус" shortname="Секция" type="2" length="4"/>
|
<workflowStatus name="Статус" shortname="Секция" type="2" length="4"/>
|
||||||
|
<actions>
|
||||||
|
<post name="Добавление расчетного курса" confirmation="value,valueDate,currencyId,status" class="ru.spcex.clearing.backendapi.controller.request.cud.securities.RatesNewAction">
|
||||||
|
<value name="Расчетный курс" shortname="Расчетный курс" type="10"/>
|
||||||
|
<valueDate name="Дата, на которую расчетный курс" shortname="Дата" type="6"/>
|
||||||
|
<currencyId name="Идентификатор валюты" shortname="Валюта" type="1"/>
|
||||||
|
<status name="Статус" shortname="Секция" type="2" length="4"/>
|
||||||
|
</post>
|
||||||
|
<put name="Изменение расчетного курса" confirmation="value,status" class="ru.spcex.clearing.backendapi.controller.request.cud.securities.RatesUpdateAction">
|
||||||
|
<id type="1" name="Идентификатор записи" shortname="ID" link="rates" linkCode="id" required="true"/>
|
||||||
|
<value name="Расчетный курс" shortname="Расчетный курс" type="10"/>
|
||||||
|
<status name="Статус" shortname="Секция" type="2" length="4"/>
|
||||||
|
</put>
|
||||||
|
</actions>
|
||||||
</rates>
|
</rates>
|
||||||
</objects>
|
</objects>
|
||||||
<views>
|
<views>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue