mmarkelov 2026-05-25 13:52:23 +03:00
parent f7c774d4f1
commit 29d62c68cb

View file

@ -120,12 +120,10 @@ public class Application extends MessageCracker implements quickfix.Application,
OrdStatus ordStatus = executionReport.getOrdStatus();
ClOrdID clOrdID = executionReport.getClOrdID();
Pattern orderIdPattern = Pattern.compile("(\\d{6})-([A-Z]+)-(\\d+)");
// Matcher matcher = orderIdPattern.matcher(orderId.getValue());
// if (matcher.matches()) {
// LocalDate tradeDate = LocalDate.parse(matcher.group(1), DateTimeFormatter.ofPattern("yyMMdd"));
// String classCode = matcher.group(2);
Long orderNum = Long.parseLong(clOrdID.getValue());
Long orderNum = null;
try {
orderNum = Long.parseLong(clOrdID.getValue());
} catch (NumberFormatException ignore) {}
Imdg<SOrders> sOrdersImdg = transaction.getImdg(IMDGDistributedNames.Map_SOrders, SOrders.class);
SOrders sOrders = sOrdersImdg.getSingleObjectByPredicate(sOrdersImdg.predicateBuilder().and(