分页查询通知列表调整
parent
9dc4c857a5
commit
f534c48d29
|
|
@ -28,7 +28,7 @@ public interface CommunityPostMapper extends BaseMapperX<CommunityPostDO> {
|
|||
.eqIfPresent(CommunityPostDO::getPostType, reqVO.getPostType())
|
||||
.betweenIfPresent(CommunityPostDO::getPublishTime, reqVO.getPublishTime())
|
||||
.apply(reqVO.getCommunityId() != null,
|
||||
"EXISTS (SELECT 1 FROM comm_post_scope WHERE post_id = id AND community_id = {0})",
|
||||
"EXISTS (SELECT 1 FROM comm_post_scope WHERE post_id = comm_post.id AND community_id = {0})",
|
||||
reqVO.getCommunityId())
|
||||
.orderByDesc(CommunityPostDO::getId));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue