Commit 3ca75b9d authored by RANNOU's avatar RANNOU 👽
Browse files

[fix] Dao: fix filter includedIds

parent 08264cba
......@@ -588,14 +588,12 @@ public class ReferentialDaoImpl
statusIdsClause = builder.in(entityRoot.get(IWithStatusEntity.Fields.STATUS).get(IEntity.Fields.ID)).value(statusIdsParam);
}
// Excluded Ids
// Included Ids
Predicate includedClause = null;
ParameterExpression<Collection> includedIdsParam = null;
if (ArrayUtils.isNotEmpty(includedIds)) {
includedIdsParam = builder.parameter(Collection.class);
includedClause = builder.not(
builder.in(entityRoot.get(IEntity.Fields.ID)).value(includedIdsParam)
);
includedClause = builder.in(entityRoot.get(IEntity.Fields.ID)).value(includedIdsParam);
}
// Excluded Ids
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment