http://jira.mfd.msk:8088/browse/CLS-293 meta 4: добавил новые словари
This commit is contained in:
parent
d9fa17b0c7
commit
61ed69c676
15 changed files with 266 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ import java.util.function.Function;
|
|||
|
||||
import static ru.spcex.platform.utils.number.BigDecimalUtil.safeBD;
|
||||
|
||||
@Deprecated
|
||||
@Component
|
||||
public class AccountBalanceService {
|
||||
private final Logger log = LoggerFactory.getLogger(getClass());
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
package ru.clearing.platform.dictionary;
|
||||
|
||||
/**
|
||||
* Справочник типов изменений записей
|
||||
*
|
||||
* Dictionary DB table: EVENT_TYPE_DICTIONARY
|
||||
**/
|
||||
public class EventTypeDictionary extends AbstractDictionary {
|
||||
private static final long serialVersionUID = ConstDictionarySerializable.serialVersionUID;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package ru.clearing.platform.dictionary;
|
||||
|
||||
/**
|
||||
* Справочник типов входящих и исходящих записей
|
||||
* <p>
|
||||
* Dictionary DB table: IN_OUT_S_DF_TYPE_DICTIONARY
|
||||
**/
|
||||
public class InOutSDfTypeDictionary extends AbstractDictionary {
|
||||
private static final long serialVersionUID = ConstDictionarySerializable.serialVersionUID;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package ru.clearing.platform.dictionary;
|
||||
|
||||
/**
|
||||
* Справочник типов торгов
|
||||
* <p>
|
||||
* Dictionary DB table: MARKET_TYPE_DICTIONARY
|
||||
**/
|
||||
public class MarketTypeDictionary extends AbstractDictionary {
|
||||
private static final long serialVersionUID = ConstDictionarySerializable.serialVersionUID;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package ru.clearing.platform.dictionary;
|
||||
|
||||
/**
|
||||
* Справочник статусов сообщений
|
||||
*
|
||||
* Dictionary DB table: NOTIFICATION_STATUS_DICTIONARY
|
||||
**/
|
||||
public class NotificationStatusDictionary extends AbstractDictionary {
|
||||
private static final long serialVersionUID = ConstDictionarySerializable.serialVersionUID;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package ru.clearing.platform.dictionary;
|
||||
|
||||
/**
|
||||
* Справочник типов объектов
|
||||
*
|
||||
* Dictionary DB table: OBJECT_TYPE_DICTIONARY
|
||||
**/
|
||||
public class ObjectTypeDictionary extends AbstractDictionary {
|
||||
private static final long serialVersionUID = ConstDictionarySerializable.serialVersionUID;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package ru.clearing.platform.dictionary;
|
||||
|
||||
/**
|
||||
* Справочник статусов транзакций
|
||||
* <p>
|
||||
* Dictionary DB table: TRANSACTION_STATUS_DICTIONARY
|
||||
**/
|
||||
public class TransactionStatusDictionary extends AbstractDictionary {
|
||||
private static final long serialVersionUID = ConstDictionarySerializable.serialVersionUID;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package ru.spcex.clearing.imdg.dictionary;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.platform.dictionary.EventTypeDictionary;
|
||||
import ru.spcex.clearing.imdg.base.DictionaryTMapStore;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
|
||||
@Component
|
||||
public class EventTypeDictionaryMapStore extends DictionaryTMapStore<EventTypeDictionary> {
|
||||
|
||||
public EventTypeDictionaryMapStore(JdbcTemplate jdbcTemplate) {
|
||||
super(jdbcTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMapName() {
|
||||
return IMDGDistributedNames.Map_EventTypeDictionary;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTableName() {
|
||||
return "EVENT_TYPE_DICTIONARY";
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventTypeDictionary getDictionaryObject() {
|
||||
return new EventTypeDictionary();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package ru.spcex.clearing.imdg.dictionary;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.platform.dictionary.InOutSDfTypeDictionary;
|
||||
import ru.spcex.clearing.imdg.base.DictionaryTMapStore;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
|
||||
@Component
|
||||
public class InOutSDfTypeDictionaryMapStore extends DictionaryTMapStore<InOutSDfTypeDictionary> {
|
||||
|
||||
public InOutSDfTypeDictionaryMapStore(JdbcTemplate jdbcTemplate) {
|
||||
super(jdbcTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMapName() {
|
||||
return IMDGDistributedNames.Map_InOutSDfTypeDictionary;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTableName() {
|
||||
return "IN_OUT_S_DF_TYPE_DICTIONARY";
|
||||
}
|
||||
|
||||
@Override
|
||||
public InOutSDfTypeDictionary getDictionaryObject() {
|
||||
return new InOutSDfTypeDictionary();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package ru.spcex.clearing.imdg.dictionary;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.platform.dictionary.MarketTypeDictionary;
|
||||
import ru.spcex.clearing.imdg.base.DictionaryTMapStore;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
|
||||
@Component
|
||||
public class MarketTypeDictionaryMapStore extends DictionaryTMapStore<MarketTypeDictionary> {
|
||||
|
||||
public MarketTypeDictionaryMapStore(JdbcTemplate jdbcTemplate) {
|
||||
super(jdbcTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMapName() {
|
||||
return IMDGDistributedNames.Map_MarketTypeDictionary;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTableName() {
|
||||
return "MARKET_TYPE_DICTIONARY";
|
||||
}
|
||||
|
||||
@Override
|
||||
public MarketTypeDictionary getDictionaryObject() {
|
||||
return new MarketTypeDictionary();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package ru.spcex.clearing.imdg.dictionary;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.platform.dictionary.NotificationStatusDictionary;
|
||||
import ru.spcex.clearing.imdg.base.DictionaryTMapStore;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
|
||||
@Component
|
||||
public class NotificationStatusDictionaryMapStore extends DictionaryTMapStore<NotificationStatusDictionary> {
|
||||
|
||||
public NotificationStatusDictionaryMapStore(JdbcTemplate jdbcTemplate) {
|
||||
super(jdbcTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMapName() {
|
||||
return IMDGDistributedNames.Map_NotificationStatusDictionary;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTableName() {
|
||||
return "NOTIFICATION_STATUS_DICTIONARY";
|
||||
}
|
||||
|
||||
@Override
|
||||
public NotificationStatusDictionary getDictionaryObject() {
|
||||
return new NotificationStatusDictionary();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package ru.spcex.clearing.imdg.dictionary;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.platform.dictionary.ObjectTypeDictionary;
|
||||
import ru.spcex.clearing.imdg.base.DictionaryTMapStore;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
|
||||
@Component
|
||||
public class ObjectTypeDictionaryMapStore extends DictionaryTMapStore<ObjectTypeDictionary> {
|
||||
|
||||
public ObjectTypeDictionaryMapStore(JdbcTemplate jdbcTemplate) {
|
||||
super(jdbcTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMapName() {
|
||||
return IMDGDistributedNames.Map_ObjectTypeDictionary;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTableName() {
|
||||
return "OBJECT_TYPE_DICTIONARY";
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObjectTypeDictionary getDictionaryObject() {
|
||||
return new ObjectTypeDictionary();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package ru.spcex.clearing.imdg.dictionary;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import ru.clearing.platform.dictionary.TransactionStatusDictionary;
|
||||
import ru.spcex.clearing.imdg.base.DictionaryTMapStore;
|
||||
import ru.spcex.clearing.imdg.IMDGDistributedNames;
|
||||
|
||||
@Component
|
||||
public class TransactionStatusDictionaryMapStore extends DictionaryTMapStore<TransactionStatusDictionary> {
|
||||
|
||||
public TransactionStatusDictionaryMapStore(JdbcTemplate jdbcTemplate) {
|
||||
super(jdbcTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMapName() {
|
||||
return IMDGDistributedNames.Map_TransactionStatusDictionary;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTableName() {
|
||||
return "TRANSACTION_STATUS_DICTIONARY";
|
||||
}
|
||||
|
||||
@Override
|
||||
public TransactionStatusDictionary getDictionaryObject() {
|
||||
return new TransactionStatusDictionary();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -197,17 +197,22 @@ public class RunnableMapNamesForTesting {
|
|||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_DayStatusDictionary, DayStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_DocumentTypeDictionary, DocumentTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ErrorCodeDictionary, ErrorCodeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_EventTypeDictionary, EventTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_InOutDirectionDictionary, InOutDirectionDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_InOutSDfTypeDictionary, InOutSDfTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_InstrumentTypeDictionary, InstrumentTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_LegalKindDictionary, LegalKindDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ManagementJournalPurposeDictionary, ManagementJournalPurposeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ManagementJournalStatusDictionary, ManagementJournalStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ManagementJournalTypeDictionary, ManagementJournalTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_MarketTypeDictionary, MarketTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_MoneyFlowSideDictionary, MoneyFlowSideDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_MarketCodeDictionary, MarketCodeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_NotificationStatusDictionary, NotificationStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_OperationStatusDictionary, OperationStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_OperationTypeDictionary, OperationTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_OrganizationTypeDictionary, OrganizationTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ObjectTypeDictionary, ObjectTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ParentDictionary, ParentDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_ResultStatusDictionary, ResultStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_SessionStatusDictionary, SessionStatusDictionary.class));
|
||||
|
|
@ -220,6 +225,7 @@ public class RunnableMapNamesForTesting {
|
|||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_TaskDictionary, TaskDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_TaskStatusDictionary, TaskStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_TermTypeDictionary, TermTypeDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_TransactionStatusDictionary, TransactionStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_UserRoleDictionary, UserRoleDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_WorkflowStatusDictionary, WorkflowStatusDictionary.class));
|
||||
checkerDictionaryMapStores.add(new CheckerDictionaryMapStore<>(IMDGDistributedNames.Map_SectionDictionary, SectionDictionary.class));
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public final class IMDGDistributedNames {
|
|||
public static final String Map_ClearingAccount = "Map_ClearingAccount";
|
||||
public static final String Map_ClearingAccountHistory = "Map_ClearingAccountHistory";
|
||||
public static final String Map_ManagementJournal = "Map_ManagementJournal";
|
||||
public static final String Map_NotificationStatusDictionary = "Map_NotificationStatusDictionary";
|
||||
public static final String Map_Listing = "Map_Listing";
|
||||
public static final String Map_Market = "Map_Market";
|
||||
public static final String Map_BankAccount = "Map_BankAccount";
|
||||
|
|
@ -31,7 +32,8 @@ public final class IMDGDistributedNames {
|
|||
public static final String Map_RelationHistory = "Map_RelationHistory";
|
||||
public static final String Map_ErrorText = "Map_ErrorText";
|
||||
public static final String Map_Statement = "Map_Statement";
|
||||
public static final String Map_MarketAccess = "Map_MarketAccess";
|
||||
public static final String Map_MarketAccess = "Map_MarketAccess"; // todo unused?
|
||||
public static final String Map_MarketTypeDictionary = "Map_MarketTypeDictionary";
|
||||
public static final String Map_UserConnect = "Map_UserConnect";
|
||||
public static final String Map_UserConnectHistory = "Map_UserConnectHistory";
|
||||
public static final String Map_User = "Map_User";
|
||||
|
|
@ -43,6 +45,7 @@ public final class IMDGDistributedNames {
|
|||
public static final String Map_PlannerTemplate = "Map_PlannerTemplate";
|
||||
public static final String Map_InDocumentJournal = "Map_InDocumentJournal";
|
||||
public static final String Map_OutDocumentJournal = "Map_OutDocumentJournal";
|
||||
public static final String Map_ObjectTypeDictionary = "Map_ObjectTypeDictionary";
|
||||
public static final String Map_SDf01 = "Map_SDf01";
|
||||
public static final String Map_SDf02 = "Map_SDf02";
|
||||
public static final String Map_SDf03 = "Map_SDf03";
|
||||
|
|
@ -79,7 +82,9 @@ public final class IMDGDistributedNames {
|
|||
public static final String Map_ClearingStatusDictionary = "Map_ClearingStatusDictionary";
|
||||
public static final String Map_CurrencyCodeDictionary = "Map_CurrencyCodeDictionary";
|
||||
public static final String Map_ErrorCodeDictionary = "Map_ErrorCodeDictionary";
|
||||
public static final String Map_EventTypeDictionary = "Map_EventTypeDictionary";
|
||||
public static final String Map_InOutDirectionDictionary = "Map_InOutDirectionDictionary";
|
||||
public static final String Map_InOutSDfTypeDictionary = "Map_InOutSDfTypeDictionary";
|
||||
public static final String Map_InstrumentTypeDictionary = "Map_InstrumentTypeDictionary";
|
||||
public static final String Map_ManagementJournalPurposeDictionary = "Map_ManagementJournalPurposeDictionary";
|
||||
public static final String Map_ManagementJournalStatusDictionary = "Map_ManagementJournalStatusDictionary";
|
||||
|
|
@ -93,6 +98,7 @@ public final class IMDGDistributedNames {
|
|||
public static final String Map_ServiceStatusDictionary = "Map_ServiceStatusDictionary";
|
||||
public static final String Map_StatementTypeDictionary = "Map_StatementTypeDictionary";
|
||||
public static final String Map_TermTypeDictionary = "Map_TermTypeDictionary";
|
||||
public static final String Map_TransactionStatusDictionary = "Map_TransactionStatusDictionary";
|
||||
public static final String Map_CourierTypeDictionary = "Map_CourierTypeDictionary";
|
||||
public static final String Map_TaskDictionary = "Map_TaskDictionary";
|
||||
public static final String Map_TaskStatusDictionary = "Map_TaskStatusDictionary";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue