浏览代码

获取文章列表接口-评论数量优化

fangqing 4 月之前
父节点
当前提交
a5662f82fb

+ 1 - 1
ruoyi-generator/src/main/resources/mapper/community/CommunityArticleCommentMapper.xml

@@ -12,7 +12,7 @@
                                left join community_comment_reply b on a.id = b.comment_id
                       where a.article_id = #{articleId} and  b.is_delete != 1) as replyCount
               from community_article_comment c
-              where c.article_id = #{articleId}) as d
+              where c.article_id = #{articleId} and  c.is_delete != 1 ) as d
     </select>
 
     <select id="queryCommentReplyCount" resultType="java.lang.Integer">