@@ -34,7 +34,7 @@ public interface CommunityArticleCommentMapper extends BaseMapper<CommunityArtic
/**
- * 获取用户所有文章和评论被喜欢的数量 的数量
+ * 获取用户所有文章和评论被喜欢的数量的数量 跟下面sql一样后期优化
* @param userId
* @return
*/
@@ -48,6 +48,8 @@
</where>
) as d
</select>
+
<select id="queryCommentReplyCountPerson" resultType="java.lang.Integer">
select count(1) count from (
select