fangqing hai 5 meses
pai
achega
acdd488afe

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

@@ -10,7 +10,7 @@
                      (select count(1) as replyCount
                       from community_article_comment a
                                left join community_comment_reply b on a.id = b.comment_id
-                      where a.article_id = #{articleId}) as replyCount
+                      where a.article_id = #{articleId} and  b.is_delete != 1) as replyCount
               from community_article_comment c
               where c.article_id = #{articleId}) as d
     </select>