🐛 增加文章状态判断条件

This commit is contained in:
ronger 2021-05-20 22:37:31 +08:00
parent 71eb035eb9
commit 5673b12238

View File

@ -34,7 +34,8 @@
<select id="getAllArticleLucene" resultMap="ResultMapWithBLOBs"> <select id="getAllArticleLucene" resultMap="ResultMapWithBLOBs">
select art.id, art.article_title, content.article_content select art.id, art.article_title, content.article_content
from forest_article art from forest_article art
join forest_article_content content on art.id = content.id_article; join forest_article_content content on art.id = content.id_article
where article_status = 0;
</select> </select>
<select id="getArticlesByIds" resultMap="DTOResultMap"> <select id="getArticlesByIds" resultMap="DTOResultMap">
@ -59,6 +60,7 @@
select art.id, art.article_title, content.article_content select art.id, art.article_title, content.article_content
from forest_article art from forest_article art
join forest_article_content content on art.id = content.id_article join forest_article_content content on art.id = content.id_article
where id = #{id}; where article_status = 0
and id = #{id};
</select> </select>
</mapper> </mapper>