etreschenkov 2024-10-02 15:31:40 +03:00
parent 2a365606fa
commit 39655fefd0
3 changed files with 134 additions and 8 deletions

View file

@ -18,7 +18,7 @@ public class RatesNewAction implements IAction<RatesNewRequest> {
private LocalDate valueDate;
@ApiModelProperty(value = "Валюта.", example = "1234")
@JsonProperty
private Long currencyPairId;
private Long currencyId;
@ApiModelProperty(value = "Статус.", example = "1234")
@JsonProperty
private String status;
@ -28,7 +28,7 @@ public class RatesNewAction implements IAction<RatesNewRequest> {
RatesNewRequest request = new RatesNewRequest();
request.setValue(this.value);
request.setValueDate(this.valueDate);
request.setCurrencyId(this.currencyPairId);
request.setCurrencyId(this.currencyId);
request.setStatus(this.status);
return request;
}
@ -55,12 +55,12 @@ public class RatesNewAction implements IAction<RatesNewRequest> {
this.valueDate = valueDate;
}
public Long getCurrencyPairId() {
return currencyPairId;
public Long getCurrencyId() {
return currencyId;
}
public void setCurrencyPairId(Long currencyPairId) {
this.currencyPairId = currencyPairId;
public void setCurrencyId(Long currencyPairId) {
this.currencyId = currencyPairId;
}
public String getStatus() {

View file

@ -1,6 +1,6 @@
{
"version": "3.15.206.105",
"version": "3.15.206.106",
"enums": {
@ -10578,7 +10578,57 @@
"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": {
@ -10616,7 +10666,57 @@
"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
}
]
}
]
}
}

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--?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" -->
<!--Здесь словари-->
<enums>
@ -2449,6 +2449,19 @@
<currencyPair name="Код валютной пары" shortname="Код валютной пары" type="2" length="12"/>
<currencyPairId name="Идентификатор валютной пары" shortname="Валютная пара" type="1"/>
<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>
<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"/>
@ -2457,6 +2470,19 @@
<currency name="Код валюты" shortname="Код валюты" type="2" length="4"/>
<currencyId name="Идентификатор валюты" shortname="Валюта" type="1"/>
<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>
</objects>
<views>