Skip to content

Commit

Permalink
#183 added the where filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony4m committed Jan 9, 2025
1 parent d990198 commit eafe776
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import de.symeda.sormas.api.ebs.SignalVerificationDto;
import de.symeda.sormas.api.ebs.TriagingDto;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
Expand All @@ -71,6 +69,8 @@
import de.symeda.sormas.api.ebs.EbsIndexDto;
import de.symeda.sormas.api.ebs.EbsReferenceDto;
import de.symeda.sormas.api.ebs.SignalOutcome;
import de.symeda.sormas.api.ebs.SignalVerificationDto;
import de.symeda.sormas.api.ebs.TriagingDto;
import de.symeda.sormas.api.externaldata.ExternalDataDto;
import de.symeda.sormas.api.externaldata.ExternalDataUpdateException;
import de.symeda.sormas.api.externalsurveillancetool.ExternalSurveillanceToolException;
Expand Down Expand Up @@ -460,6 +460,9 @@ public List<EbsIndexDto> getIndexList(EbsCriteria ebsCriteria, Integer first, In
Predicate criteriaFilter = service.buildCriteriaFilter(ebsCriteria, ebsQueryContext);
filter = CriteriaBuilderHelper.and(cb, filter, criteriaFilter);
}
if (filter != null) {
cq.where(filter);
}

sortBy(sortProperties, ebsQueryContext);
cq.distinct(true);
Expand Down

0 comments on commit eafe776

Please sign in to comment.