소스 검색

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

fangqing 6 달 전
부모
커밋
a5662f82fb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ruoyi-generator/src/main/resources/mapper/community/CommunityArticleCommentMapper.xml

+ 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">