Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,11 @@ protected void addIdFilter(QueryData queryData, String resourceType, QueryParame
final String parentAlias = queryData.getLRAlias();
List<String> values = queryParm.getValues().stream().map(p -> p.getValueCode()).collect(Collectors.toList());
if (values.size() == 1) {
currentSubQuery.from().where().and(parentAlias, "LOGICAL_ID").eq().bind(values.get(0));
if (Modifier.NOT.equals(queryParm.getModifier())) {
currentSubQuery.from().where().and(parentAlias, "LOGICAL_ID").neq().bind(values.get(0));
}else{
currentSubQuery.from().where().and(parentAlias, "LOGICAL_ID").eq().bind(values.get(0));
}
} else if (values.size() > 1) {
// the values are converted to bind-markers, so this is secure
currentSubQuery.from().where().and(parentAlias, "LOGICAL_ID").in(values);
Expand Down Expand Up @@ -3193,4 +3197,4 @@ private String getDataCol() {
}
}
}
}
}