1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-14 18:26:17 +00:00

#176: navigation by tag

This commit is contained in:
Benjamin Gamard
2018-03-10 16:36:14 +01:00
parent a0e89103af
commit 77311f42cd
7 changed files with 202 additions and 71 deletions

View File

@@ -247,7 +247,7 @@ public class DocumentDao {
tagCriteriaList.add(String.format("dt%d.DOT_ID_C is not null", index));
index++;
}
criteriaList.add(Joiner.on(" OR ").join(tagCriteriaList));
criteriaList.add("(" + Joiner.on(" OR ").join(tagCriteriaList) + ")");
}
if (criteria.getShared() != null && criteria.getShared()) {
criteriaList.add("(select count(s.SHA_ID_C) from T_SHARE s, T_ACL ac where ac.ACL_SOURCEID_C = d.DOC_ID_C and ac.ACL_TARGETID_C = s.SHA_ID_C and ac.ACL_DELETEDATE_D is null and s.SHA_DELETEDATE_D is null) > 0");