etreschenkov 2024-09-09 11:54:45 +03:00
parent eecddc03cc
commit ea74d18b1a

View file

@ -86,7 +86,12 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
pb.sql(sql),
pb.greatEqual("refundDate", nowDate),
pb.lessEqual("valueDate", nowDate),
pb.in("sessionType", SessionType.XDEP.getKey(), SessionType.FINL.getKey(), SessionType.MEDM.getKey())
pb.or(
pb.in("sessionType", SessionType.XDEP.getKey(), SessionType.FINL.getKey(), SessionType.MEDM.getKey()),
pb.and(
pb.equals("sessionType", SessionType.UNIT.getKey()),
pb.equals("section", Section.MKR.getKey()))
)
);
Collection<Registry> registries = registryImdg.getCollectionObjectsByPredicate(finalPredicate);
log.debug("Found {} Registry by query: {}", registries.size(), finalPredicate);