🎨 只展示发布状态文章的评论
This commit is contained in:
parent
92cd83e116
commit
e45694a6c0
@ -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 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>
|
||||||
<select id="selectComments" resultMap="DTOResultMap">
|
<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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user