.
This commit is contained in:
parent
18f17923f9
commit
5e5133b580
2 changed files with 6 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ public class IMDGMessageResolver implements IMessageResolver {
|
||||||
try {
|
try {
|
||||||
ErrorCodeDictionary errorDictionary = errorCodeDictionaryIMDG.getSingleObjectByID(errMsg.getSubject().getId());
|
ErrorCodeDictionary errorDictionary = errorCodeDictionaryIMDG.getSingleObjectByID(errMsg.getSubject().getId());
|
||||||
if (errorDictionary == null) {
|
if (errorDictionary == null) {
|
||||||
log.warn("ERROR_CODE_DICTIONARY not found fo id={}", errMsg.getSubject().getId());
|
log.warn("ERROR_CODE_DICTIONARY not found for id={}", errMsg.getSubject().getId());
|
||||||
return simplFormatter.get();
|
return simplFormatter.get();
|
||||||
}
|
}
|
||||||
String textTemplate = errorDictionary.getName();
|
String textTemplate = errorDictionary.getName();
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,10 @@ public abstract class LiabilitiesClaimsReportBuilder<P> extends CSVReportBuilder
|
||||||
execution.getTradingClearingRegistryId()
|
execution.getTradingClearingRegistryId()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (registry == null) {
|
||||||
|
log.warn("registry not found for companyId={}", execution.getCompanyId());
|
||||||
|
}
|
||||||
|
|
||||||
String id = String.valueOf(execution.getId());
|
String id = String.valueOf(execution.getId());
|
||||||
String docDate = dateFormatter.format(nowDate);
|
String docDate = dateFormatter.format(nowDate);
|
||||||
String docTime = timeFormatter.format(nowTime);
|
String docTime = timeFormatter.format(nowTime);
|
||||||
|
|
@ -114,7 +118,7 @@ public abstract class LiabilitiesClaimsReportBuilder<P> extends CSVReportBuilder
|
||||||
String sessionId = String.valueOf(execution.getSessionId());
|
String sessionId = String.valueOf(execution.getSessionId());
|
||||||
String clearingDate = dateFormatter.format(execution.getClearingDate());
|
String clearingDate = dateFormatter.format(execution.getClearingDate());
|
||||||
String clearingTime = dateFormatter.format(execution.getClearingDate());
|
String clearingTime = dateFormatter.format(execution.getClearingDate());
|
||||||
String trdAccId = registry.getTradingClearingRegistry();
|
String trdAccId = registry == null? null : registry.getTradingClearingRegistry();
|
||||||
String account = String.valueOf(tradingClearingRegistry.getMoneyAccountId());
|
String account = String.valueOf(tradingClearingRegistry.getMoneyAccountId());
|
||||||
String depoAccount = String.valueOf(tradingClearingRegistry.getDepoAccountId());
|
String depoAccount = String.valueOf(tradingClearingRegistry.getDepoAccountId());
|
||||||
String currency = execution.getSettlementCurrency();
|
String currency = execution.getSettlementCurrency();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue