merge CLS-752

This commit is contained in:
akulikov 2024-09-09 12:51:32 +03:00
commit 905c4a0fd5

View file

@ -93,7 +93,12 @@ public class KSCommissionTradesReportBuilder extends CSVReportBuilder<EmptyParam
registryPredicate,
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);