提交 80f31070 编写于 作者: 楼国栋

Merge branch 'fix/message_instance_get_bug' into 'develop'

查询Instant消息排除没有消费者的

See merge request o2oa/o2oa!1552
......@@ -43,6 +43,7 @@ class ActionListWithCurrentPersonWithoutIMDesc extends BaseAction {
Root<Instant> root = cq.from(Instant.class);
Predicate p = cb.equal(root.get(Instant_.person), effectivePerson.getDistinguishedName());
p = cb.and(p, cb.notEqual(root.get(Instant_.type), MessageConnector.TYPE_IM_CREATE));
p = cb.and(p, cb.isNotEmpty(root.get(Instant_.consumerList)));
List<Instant> os = em.createQuery(cq.select(root).where(p).orderBy(cb.desc(root.get(Instant_.createTime))))
.setMaxResults(count).getResultList();
return Wo.copier.copy(os);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册