reports-service http://jira.mfd.msk:8088/browse/CLS-497 правки
This commit is contained in:
parent
ea0b8a74dd
commit
633f34ee51
1 changed files with 19 additions and 17 deletions
|
|
@ -82,7 +82,7 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
|
|||
pb.sql(sql),
|
||||
pb.equals("refundDate", nowDate),
|
||||
pb.less("valueDate", nowDate),
|
||||
pb.or(pb.equals("registryStatus", RegistryStatus.OK.getKey()), pb.equals("registryStatus", RegistryStatus.CLRD.getKey())),
|
||||
pb.equals("registryStatus", RegistryStatus.CLRD.getKey()),
|
||||
pb.or(pb.equals("sessionType", SessionType.XDEP.getKey()), pb.equals("sessionType", SessionType.FINL.getKey()))
|
||||
);
|
||||
Collection<Registry> registries = registryImdg.getCollectionObjectsByPredicate(finalPredicate);
|
||||
|
|
@ -103,7 +103,10 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
|
|||
registry.getCompanyId());
|
||||
continue;
|
||||
}
|
||||
if (!WorkflowStatus.Active.equalsByKey(company.getWorkflowStatus())) continue;
|
||||
if (!WorkflowStatus.Active.equalsByKey(company.getWorkflowStatus())) {
|
||||
log.debug("Company not active, registry[{}] skip.", registry.getId());
|
||||
continue;
|
||||
}
|
||||
|
||||
String firmId = "";
|
||||
String firmIdInitiator = "";
|
||||
|
|
@ -122,21 +125,20 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
|
|||
}
|
||||
}
|
||||
|
||||
sql = RegistryCodeSqlBuilder.getInstance(RegistryTradingParams.OM_T).build();
|
||||
Registry omtRegistry = registryImdg.getFirstObjectByPredicate(
|
||||
pb.and(
|
||||
pb.sql(sql),
|
||||
pb.equals("contract", registry.getContract()),
|
||||
pb.notNull("groupId")
|
||||
)
|
||||
);
|
||||
if (omtRegistry == null) {
|
||||
log.warn("Can't find pair OM_T registry for contract = {}. Registry id = {} skipped",
|
||||
registry.getContract(),
|
||||
registry.getId());
|
||||
continue;
|
||||
}
|
||||
|
||||
// sql = RegistryCodeSqlBuilder.getInstance(RegistryTradingParams.OM_T).build();
|
||||
// Registry omtRegistry = registryImdg.getFirstObjectByPredicate(
|
||||
// pb.and(
|
||||
// pb.sql(sql),
|
||||
// pb.equals("contract", registry.getContract()),
|
||||
// pb.notNull("groupId")
|
||||
// )
|
||||
// );
|
||||
// if (omtRegistry == null) {
|
||||
// log.warn("Can't find pair OM_T registry for contract = {}. Registry id = {} skipped",
|
||||
// registry.getContract(),
|
||||
// registry.getId());
|
||||
// continue;
|
||||
// }
|
||||
// String tradeNum = extractPartAgreementNumber(String.valueOf(omtRegistry.getGroupId()));
|
||||
// if (tradeNum == null) {
|
||||
// log.warn("Can't extract TradeNum from GroupId (groupId = {} for OM_T registry id = {}). " +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue