This commit is contained in:
parent
193983bc13
commit
d707d6ab6e
3 changed files with 16 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (!executionDeposits.isEmpty()) {
|
if (!executionDeposits.isEmpty()) {
|
||||||
if (executionDeposits.size() > 1) log.warn("ExecutionDeposit[exchangeExecutionId = {}].size > 1, use first", registry.getGroupId());
|
if (executionDeposits.size() > 1) log.warn("ExecutionDeposit[exchangeExecutionId = {}, market = {}].size > 1, use first", registry.getGroupId(), registry.getMarket());
|
||||||
ExecutionDeposit executionDeposit = executionDeposits.iterator().next();
|
ExecutionDeposit executionDeposit = executionDeposits.iterator().next();
|
||||||
classCode = executionDeposit.getMarket();
|
classCode = executionDeposit.getMarket();
|
||||||
}
|
}
|
||||||
|
|
@ -201,7 +201,10 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
|
||||||
Registry tmtRegistry = registryImdg.getFirstObjectByPredicate(
|
Registry tmtRegistry = registryImdg.getFirstObjectByPredicate(
|
||||||
pb.and(
|
pb.and(
|
||||||
pb.equals("counterPartyId", registry.getCompanyId()),
|
pb.equals("counterPartyId", registry.getCompanyId()),
|
||||||
pb.equals("groupId", registry.getGroupId()),
|
pb.and(
|
||||||
|
pb.equals("groupId", registry.getGroupId()),
|
||||||
|
pb.equals("market", registry.getMarket())
|
||||||
|
),
|
||||||
tmtPredicate
|
tmtPredicate
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,16 @@ public class DBPredicateBuilder extends ImdgPredicateBuilderHazelcast {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ImdgPredicate alwaysTrue() {
|
||||||
|
return new DBPredicate(" (true) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ImdgPredicate alwaysFalse() {
|
||||||
|
return new DBPredicate(" (false) ");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ImdgPredicate sql(String sql) {
|
public ImdgPredicate sql(String sql) {
|
||||||
return new DBPredicate(sql);
|
return new DBPredicate(sql);
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,7 @@ public class DBProvider implements ImdgProvider {
|
||||||
registryMatcher.put("sessionId", "session_id");
|
registryMatcher.put("sessionId", "session_id");
|
||||||
registryMatcher.put("sessionType", "session_type");
|
registryMatcher.put("sessionType", "session_type");
|
||||||
registryMatcher.put("paymentId", "payment_id");
|
registryMatcher.put("paymentId", "payment_id");
|
||||||
|
registryMatcher.put("market", "market");
|
||||||
this.fieldsMatcherForTable.put(Registry.class, registryMatcher);
|
this.fieldsMatcherForTable.put(Registry.class, registryMatcher);
|
||||||
|
|
||||||
Map<String, String> sessionMatcher = new HashMap<>();
|
Map<String, String> sessionMatcher = new HashMap<>();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue