reports-service оправил выборку ExecutionDeposit и ExecutionFond

This commit is contained in:
AKurakin 2024-01-29 12:22:53 +03:00
parent 2c3a08232b
commit 58f78c39b4

View file

@ -84,12 +84,18 @@ public class KSRepTradesReportBuilder extends CSVReportBuilder<EmptyParams, KSRe
ImdgPredicateBuilder pbExecutionDeposit = executionDepositImdg.predicateBuilder();
Collection<ExecutionDeposit> executionDeposits = executionDepositImdg.getCollectionObjectsByPredicate(
pbExecutionDeposit.equals("tradingDate", nowDate)
pbExecutionDeposit.or(
pbExecutionDeposit.equals("tradingDate", nowDate),
pbExecutionDeposit.greatEqual("firstLegSettlementDate", nowDate)
)
);
log.debug("Found {} ExecutionDeposit by tradingDate={}", executionDeposits.size(), nowDate);
ImdgPredicateBuilder pbExecutionFond = executionFondImdg.predicateBuilder();
Collection<ExecutionFond> executionFonds = executionFondImdg.getCollectionObjectsByPredicate(
pbExecutionFond.equals("tradingDate", nowDate)
pbExecutionFond.or(
pbExecutionFond.equals("tradingDate", nowDate),
pbExecutionFond.greatEqual("settlementDate", nowDate)
)
);
log.debug("Found {} ExecutionFond by tradingDate={}", executionFonds.size(), nowDate);
List<ExecutionCommon> executions = new ArrayList<>();