分页查询通知列表调整

master
zzy 2026-04-24 17:17:07 +08:00
parent 9dc4c857a5
commit f534c48d29
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public interface CommunityPostMapper extends BaseMapperX<CommunityPostDO> {
.eqIfPresent(CommunityPostDO::getPostType, reqVO.getPostType()) .eqIfPresent(CommunityPostDO::getPostType, reqVO.getPostType())
.betweenIfPresent(CommunityPostDO::getPublishTime, reqVO.getPublishTime()) .betweenIfPresent(CommunityPostDO::getPublishTime, reqVO.getPublishTime())
.apply(reqVO.getCommunityId() != null, .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()) reqVO.getCommunityId())
.orderByDesc(CommunityPostDO::getId)); .orderByDesc(CommunityPostDO::getId));
} }