Fixes bug on Dataset Criteria.
This commit is contained in:
parent
4829151355
commit
f3fbf012f9
|
@ -49,7 +49,7 @@ public class DatasetDaoImpl extends DatabaseAccess<Dataset> implements DatasetDa
|
|||
if (criteria.getOrganisations() != null && !criteria.getOrganisations().isEmpty()) {
|
||||
query.where((builder, root) -> root.join("dmp").join("organisations").get("reference").in(criteria.getOrganisations()));
|
||||
}
|
||||
if (criteria.getProjects() != null) {
|
||||
if (criteria.getProjects() != null && !criteria.getProjects().isEmpty()) {
|
||||
query.where((builder, root) -> root.join("dmp").join("project").get("id").in(criteria.getProjects()));
|
||||
}
|
||||
query.where(((builder, root) -> builder.notEqual(root.get("status"), Dataset.Status.DELETED.getValue())));
|
||||
|
|
Loading…
Reference in New Issue