提交 c5f2a880 编写于 作者: O o2sword

视图不能过滤内容管理草稿问题

上级 7f338a37
......@@ -270,6 +270,7 @@ public class CmsPlan extends Plan {
ps.add(this.documentPredicate_appInfo(cb, root));
ps.add(this.documentPredicate_date(cb, root));
ps.add(this.documentPredicate_Filter(cb, root, runtime, filterList));
ps.add(this.documentPredicate_draft(cb, root));
Predicate predicate = this.documentPredicate_typeScope(cb, root);
if (predicate != null) {
......@@ -374,6 +375,13 @@ public class CmsPlan extends Plan {
return null;
}
private Predicate documentPredicate_draft(CriteriaBuilder cb, Root<Document> root) {
if (BooleanUtils.isFalse(this.draft)) {
return cb.isNotNull(root.get(Document_.publishTime));
}
return null;
}
private Predicate documentPredicate_Filter(CriteriaBuilder cb, Root<Document> root, Runtime runtime,
List<FilterEntry> filterList) throws Exception {
boolean flag = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册