etreschenkov 2025-08-13 15:08:04 +03:00
parent 8945bd978a
commit 4b5d5b94af
4 changed files with 103 additions and 3 deletions

View file

@ -1,10 +1,15 @@
package ru.spcex.clearing.backendapi.controller.request.cud.company;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDate;
import ru.spcex.clearing.backendapi.domain.actions.IAction;
import ru.spcex.clearing.platform.messaging.domain.ActionType;
import ru.spcex.clearing.platform.messaging.domain.cud.company.CompanyInfoUpdateRequest;
import ru.spcex.clearing.platform.messaging.domain.json.deserialize.LocalDateDeserializer;
import ru.spcex.clearing.platform.messaging.domain.json.serialize.LocalDateSerializer;
public class CompanyInfoUpdateAction implements IAction<CompanyInfoUpdateRequest> {
@ApiModelProperty(hidden = true)
@ -47,6 +52,14 @@ public class CompanyInfoUpdateAction implements IAction<CompanyInfoUpdateRequest
@ApiModelProperty(value = "Наименование статуса", example = "ACTV")
@JsonProperty
private String workflowStatus;
@ApiModelProperty(value = "Налоговый номер", example = "ACTV")
@JsonProperty
private String taxNumber;
@ApiModelProperty(value = "Дата гос. регистрации", example = "2022-12-25")
@JsonSerialize(using = LocalDateSerializer.class)
@JsonDeserialize(using = LocalDateDeserializer.class)
@JsonProperty
private LocalDate registrationDate;
@Override
public CompanyInfoUpdateRequest toRequest() {
@ -63,7 +76,9 @@ public class CompanyInfoUpdateAction implements IAction<CompanyInfoUpdateRequest
request.setFullNameEng(this.fullNameEng);
request.setShortName(this.shortName);
request.setFullName(this.fullName);
request.setWorkflowStatus(workflowStatus);
request.setWorkflowStatus(this.workflowStatus);
request.setTaxNumber(this.taxNumber);
request.setRegistrationDate(this.registrationDate);
return request;
}
@ -176,4 +191,20 @@ public class CompanyInfoUpdateAction implements IAction<CompanyInfoUpdateRequest
public void setWorkflowStatus(String workflowStatus) {
this.workflowStatus = workflowStatus;
}
public String getTaxNumber() {
return taxNumber;
}
public void setTaxNumber(String taxNumber) {
this.taxNumber = taxNumber;
}
public LocalDate getRegistrationDate() {
return registrationDate;
}
public void setRegistrationDate(LocalDate registrationDate) {
this.registrationDate = registrationDate;
}
}

View file

@ -1,6 +1,6 @@
{
"version": "3.19.250.137",
"version": "3.20.260.139",
"enums": {
@ -1544,6 +1544,29 @@
"table": "unit_measurement_dictionary",
"fields": [
{"code": "id",
"name": "Идентификатор записи","shortname": "ID","type": 1
}
,
{"code": "code",
"name": "Код","shortname": "Код","type": 12
}
,
{"code": "name",
"name": "Наименование","shortname": "Наименование","type": 2,"length": 255
}
]
}
,
"residenceDictionary": {
"name": "Справочник резидентства",
"class": "ru.clearing.platform.dictionary.ResidenceDictionary",
"table": "residence_dictionary",
"fields": [
{"code": "id",
"name": "Идентификатор записи","shortname": "ID","type": 1
@ -1981,6 +2004,14 @@
{"code": "workflowStatus",
"type": 12,"name": "Наименование статуса","shortname": "Статус","searchable": true,"sortable": true,"link": "workflowStatus","extends": "company"
}
,
{"code": "taxNumber",
"type": 2,"length": 255,"name": "Налоговый номер в стране регистрации","shortname": "Налоговый номер","searchable": true,"sortable": true,"visible": true
}
,
{"code": "registrationDate",
"type": 6,"name": "Дата государственной регистрации","shortname": "Дата гос. регистрации","searchable": true,"sortable": true,"visible": true
}
,
{"code": "id",
"type": 1,"name": "Идентификатор записи","shortname": "ID","searchable": true,"sortable": true
@ -2043,6 +2074,14 @@
{"code": "workflowStatus",
"type": 12,"name": "Наименование статуса","shortname": "Статус","link": "workflowStatus"
}
,
{"code": "taxNumber",
"type": 2,"length": 255,"name": "Налоговый номер в стране регистрации","shortname": "Налоговый номер"
}
,
{"code": "registrationDate",
"type": 6,"name": "Дата государственной регистрации","shortname": "Дата гос. регистрации"
}
]
}
]

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.20.260.138">
<meta version="3.20.260.139">
<!-- _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" _xsi:noNamespaceSchemaLocation="file:///E:/d/projects/meta/from/meta.xsd" -->
<!--Здесь словари-->
<enums>
@ -344,6 +344,11 @@
<code name="Код" shortname="Код" type="12"/>
<name name="Наименование" shortname="Наименование" type="2" length="255"/>
</unitMeasurement>
<residenceDictionary name="Справочник резидентства" class="ru.clearing.platform.dictionary.ResidenceDictionary" table="residence_dictionary">
<id name="Идентификатор записи" shortname="ID" type="1"/>
<code name="Код" shortname="Код" type="12"/>
<name name="Наименование" shortname="Наименование" type="2" length="255"/>
</residenceDictionary>
</enums>
<objects>
<dbVersion name="Версия базы данных" destination="db-versions" class="ru.clearing.classes.statics.data.misc.DbVersion" table="db_version">
@ -444,6 +449,8 @@
<clearingCode type="2" length="255" name="Код участника клиринга" shortname="Клиринговый код" searchable="true" sortable="true" visible="true" extends="company"/>
<registrationCode type="2" length="255" name="Регистрационный код участника" shortname="Регистрационный код" searchable="true" sortable="true" visible="true" extends="company"/>
<workflowStatus type="12" name="Наименование статуса" shortname="Статус" searchable="true" sortable="true" link="workflowStatus" extends="company"/>
<taxNumber type="2" length="255" name="Налоговый номер в стране регистрации" shortname="Налоговый номер" searchable="true" sortable="true" visible="true"/>
<registrationDate type="6" name="Дата государственной регистрации" shortname="Дата гос. регистрации" searchable="true" sortable="true" visible="true"/>
<id type="1" name="Идентификатор записи" shortname="ID" searchable="true" sortable="true"/>
<actions>
<put name="Изменение профиля компании">
@ -460,6 +467,8 @@
<professionalSign type="12" name="Признак профессионального участника" shortname="Проф. участника" link="allowed"/>
<description type="2" length="255" name="Описание компании" shortname="Описание компании" visible="false"/>
<workflowStatus type="12" name="Наименование статуса" shortname="Статус" link="workflowStatus"/>
<taxNumber type="2" length="255" name="Налоговый номер в стране регистрации" shortname="Налоговый номер"/>
<registrationDate type="6" name="Дата государственной регистрации" shortname="Дата гос. регистрации"/>
</put>
</actions>
</companyInfo>

View file

@ -1,6 +1,7 @@
package ru.spcex.clearing.platform.messaging.domain.cud.company;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
public class CompanyInfoUpdateRequest {
@JsonProperty
@ -30,6 +31,10 @@ public class CompanyInfoUpdateRequest {
private String fullName;
@JsonProperty
private String workflowStatus;
@JsonProperty
private String taxNumber;
@JsonProperty
private LocalDate registrationDate;
public Long getId() {
return id;
@ -134,4 +139,20 @@ public class CompanyInfoUpdateRequest {
public void setWorkflowStatus(String workflowStatus) {
this.workflowStatus = workflowStatus;
}
public String getTaxNumber() {
return taxNumber;
}
public void setTaxNumber(String taxNumber) {
this.taxNumber = taxNumber;
}
public LocalDate getRegistrationDate() {
return registrationDate;
}
public void setRegistrationDate(LocalDate registrationDate) {
this.registrationDate = registrationDate;
}
}