This commit is contained in:
parent
e21479305d
commit
e32c756c30
5 changed files with 9 additions and 19 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
{
|
||||
"version": "3.23.295.168",
|
||||
"version": "3.23.295.169",
|
||||
|
||||
"enums": {
|
||||
|
||||
|
|
@ -6389,17 +6389,6 @@
|
|||
|
||||
"name": "Отправка заявок в Торговую систему",
|
||||
|
||||
"fields": []
|
||||
}
|
||||
,
|
||||
{"method":"post",
|
||||
|
||||
"destination": "ORST",
|
||||
|
||||
"group": "Обмен с Торговой системой",
|
||||
|
||||
"name": "Получение статуса заявок из Торговой системы",
|
||||
|
||||
"fields": []
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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.23.295.168">
|
||||
<meta version="3.23.295.169">
|
||||
<!-- _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" _xsi:noNamespaceSchemaLocation="file:///E:/d/projects/meta/from/meta.xsd" -->
|
||||
<!--Здесь словари-->
|
||||
<enums>
|
||||
|
|
@ -1478,8 +1478,6 @@
|
|||
</post>
|
||||
<post destination="SDOR" group="Обмен с Торговой системой" name="Отправка заявок в Торговую систему">
|
||||
</post>
|
||||
<post destination="ORST" group="Обмен с Торговой системой" name="Получение статуса заявок из Торговой системы">
|
||||
</post>
|
||||
</actions>
|
||||
</launcher>
|
||||
<session name="Клиринговые сессии" destination="sessions" historyDestination="history" class="ru.clearing.classes.statics.data.misc.Session" logUpdates="true" table="session">
|
||||
|
|
|
|||
|
|
@ -5758,4 +5758,4 @@ GRANT ALL PRIVILEGES ON TABLE S_ORDERS TO clearing;
|
|||
|
||||
-- Data types
|
||||
|
||||
INSERT INTO DB_VERSION(ID, VERSION) values (1, '3.22') ON CONFLICT (ID) DO UPDATE SET VERSION = EXCLUDED.VERSION
|
||||
INSERT INTO DB_VERSION(ID, VERSION) values (1, '3.23') ON CONFLICT (ID) DO UPDATE SET VERSION = EXCLUDED.VE RSION
|
||||
|
|
@ -393,8 +393,8 @@ public class OrderCurrencyListener extends QueueConsumer implements Initializing
|
|||
OrderCurrency counterOrder = validator.getStored(OrderCurrencyValidationStored.CounterOrderCurrency);
|
||||
|
||||
log.info("deleting OrderCurrency[{}, {}]", order.getId(), counterOrder.getId());
|
||||
orderCurrencyImdg.delete(order);
|
||||
orderCurrencyImdg.delete(counterOrder);
|
||||
reject(order);
|
||||
reject(counterOrder);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -419,6 +419,7 @@ public class OrderCurrencyListener extends QueueConsumer implements Initializing
|
|||
private void updateByFix(BaseRequest<OrderCurrencyStatusUpdateRequest> req) {
|
||||
OrderCurrencyStatusUpdateRequest payload = req.getRequestPayload();
|
||||
for (Long orderId : payload.getIds()) {
|
||||
log.debug("Process updating status by orderNum {}", orderId);
|
||||
SOrders sOrder = sOrdersImdg.getSingleObjectByPredicate(
|
||||
sOrdersImdg.predicateBuilder().equals("orderNum", orderId)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package ru.spcex.clearing.fix.quickfix;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneOffset;
|
||||
import java.util.regex.Pattern;
|
||||
import org.slf4j.Logger;
|
||||
|
|
@ -186,7 +187,7 @@ public class Application extends MessageCracker implements quickfix.Application,
|
|||
} else if (ordStatus.valueEquals(OrdStatus.CANCELED)) {
|
||||
sOrders.setWithdrawDateTime(transactTime.getValue().toInstant(ZoneOffset.UTC));
|
||||
}
|
||||
|
||||
sOrders.setCreated(Instant.now());
|
||||
sOrdersImdg.insert(sOrders);
|
||||
} else {
|
||||
sOrders.setState(String.valueOf(ordStatus.getValue()));
|
||||
|
|
@ -196,6 +197,7 @@ public class Application extends MessageCracker implements quickfix.Application,
|
|||
sOrders.setWithdrawDateTime(transactTime.getValue().toInstant(ZoneOffset.UTC));
|
||||
}
|
||||
|
||||
sOrders.setUpdated(Instant.now());
|
||||
sOrdersImdg.update(sOrders);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue