This commit is contained in:
parent
f7c774d4f1
commit
29d62c68cb
1 changed files with 46 additions and 48 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue