Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
004808fa20
1 changed files with 6 additions and 6 deletions
|
|
@ -128,7 +128,7 @@ public class TaskListener extends QueueConsumer implements InitializingBean {
|
|||
log.warn("Unsupported overnightType={} for registry id={}", overnightType, registry.getId());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("Error while processing registryId={}", registryId, e);
|
||||
log.error("Error while processing registryId={}, ex: {}", registryId, ExceptionUtils.getStackTrace(e));
|
||||
}
|
||||
}
|
||||
log.info("CROR createOrder finished");
|
||||
|
|
@ -157,20 +157,20 @@ public class TaskListener extends QueueConsumer implements InitializingBean {
|
|||
kafkaSender.sendRequestToQueue(Consts.NOTIFICATION_NEW, newReq);
|
||||
}
|
||||
|
||||
log.info("export to tri...");
|
||||
try {
|
||||
log.info("export to tri...");
|
||||
Collection<OrderCurrency> orders = imdgQueryService.getClccOrderCurrencyIds();
|
||||
String content = orderCurrencyTriExportService.exportToTri(orders);
|
||||
Path fileName = storagePath.resolve(String.format("KS_TS_ORDERS_%s.tri",
|
||||
LocalDateTime.now().format(formatter)));
|
||||
Files.writeString(fileName, content, winCharset);
|
||||
} catch (IOException e) {
|
||||
log.error("Error while import order currency to tri file: {}", ExceptionUtils.getStackTrace(e));
|
||||
}
|
||||
if (SendOrdersTypes.FIX == sendOrdersTypes) {
|
||||
log.info("send command to fix service...");
|
||||
kafkaSender.sendRequestToQueue(Consts.SDOR_FIX_TASK, req.getRequestPayload());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
log.error("Error while import order currency to tri file: {}", ExceptionUtils.getStackTrace(e));
|
||||
}
|
||||
}
|
||||
|
||||
private String checkBalance(OrderCurrency orderCurrency) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue