diff --git a/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/dal/mysql/post/CommunityPostMapper.java b/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/dal/mysql/post/CommunityPostMapper.java index dfd1906..c302142 100644 --- a/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/dal/mysql/post/CommunityPostMapper.java +++ b/fjrcloud-module-community/src/main/java/com/fjrcloud/community/module/community/dal/mysql/post/CommunityPostMapper.java @@ -28,7 +28,7 @@ public interface CommunityPostMapper extends BaseMapperX { .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)); }