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

This commit is contained in:
ronger 2024-06-12 15:50:43 +08:00
parent 92cd83e116
commit e45694a6c0

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 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.status = 0 order by fc.created_time desc
</select>
</mapper>
</mapper>