This commit is contained in:
parent
db00bb906f
commit
80fcb32abe
2 changed files with 7 additions and 3 deletions
|
|
@ -107,21 +107,24 @@ public class KSRepDepoRegisterQuantitiesReportBuilder extends CSVReportBuilder<E
|
|||
pbRegistry.equals("companyId", statement.getAddresseeId()),
|
||||
pbRegistry.equals("account", statement.getAccount()),
|
||||
pbRegistry.equals("accountType", AccountType.Depo.getKey()),
|
||||
RegistryCodeSqlBuilder.getInstance(RegistryTradingParams.AS_T).buildPredicate(pbRegistry)
|
||||
RegistryCodeSqlBuilder.getInstance(RegistryTradingParams.AS_T).buildPredicate(pbRegistry),
|
||||
pbRegistry.equals("securityId", statement.getSecurityId())
|
||||
)
|
||||
);
|
||||
if (registries.isEmpty()) {
|
||||
log.warn(
|
||||
"Can't find registry for companyId = {} and account: {}. Statement id = {} skipped",
|
||||
"Can't find registry for companyId = {}, securityId = {} and account: {}. Statement id = {} skipped",
|
||||
statement.getAddresseeId(),
|
||||
statement.getSecurityId(),
|
||||
statement.getAccount(),
|
||||
statement.getId()
|
||||
);
|
||||
continue;
|
||||
} else if (registries.size() > 1) {
|
||||
log.warn(
|
||||
"More then one AS_T registry found for companyId = {} and account: {}, statement id {}. Use first",
|
||||
"More then one AS_T registry found for companyId = {}, securityId = {} and account: {}, statement id {}. Use first",
|
||||
statement.getAddresseeId(),
|
||||
statement.getSecurityId(),
|
||||
statement.getAccount(),
|
||||
statement.getId()
|
||||
);
|
||||
|
|
|
|||
|
|
@ -293,6 +293,7 @@ public class ReportServiceTest_KS {
|
|||
registry_1.setRegistryDesignation("A");
|
||||
registry_1.setRegistryInstrumentType("S");
|
||||
registry_1.setRegistryUnit("T");
|
||||
registry_1.setSecurityId(777L);
|
||||
|
||||
registryImdg.insert(registry_1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue