🎨 只展示发布状态文章的评论

This commit is contained in:
ronger 2024-06-12 16:06:25 +08:00
parent e45694a6c0
commit 672791beb0

View File

@ -49,6 +49,6 @@
select vu.id,vu.nickname,vu.avatar_url,vu.account from forest_comment vc left join forest_user vu on vu.id = vc.comment_author_id where vc.id = #{commentOriginalCommentId}
</select>
<select id="selectComments" resultMap="DTOResultMap">
select fc.*, fa.article_title from forest_comment fc join forest_article fa on fc.comment_article_id = fa.id and fa.status = 0 order by fc.created_time desc
select fc.*, fa.article_title from forest_comment fc join forest_article fa on fc.comment_article_id = fa.id and fa.article_status = 0 order by fc.created_time desc
</select>
</mapper>