Merge pull request #137 from sunzhengyu99/master
Update ArticleMapper.xml
This commit is contained in:
commit
ab86b0ac87
@ -125,7 +125,9 @@
|
|||||||
where topic.id = vtt.id_topic and topic.topic_uri = #{topicName}))) order by updated_time desc
|
where topic.id = vtt.id_topic and topic.topic_uri = #{topicName}))) order by updated_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectArticlesByTagName" resultMap="DTOResultMap">
|
<select id="selectArticlesByTagName" resultMap="DTOResultMap">
|
||||||
select art.*,su.nickname,su.avatar_url from forest_article art join forest_user su on art.article_author_id = su.id order by updated_time desc
|
select art.*,su.nickname,su.avatar_url from forest_article art join forest_user su on art.article_author_id = su.id where
|
||||||
|
FIND_IN_SET(#{tagName},art.article_tags) > 0
|
||||||
|
order by updated_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectUserArticles" resultMap="DTOResultMap">
|
<select id="selectUserArticles" resultMap="DTOResultMap">
|
||||||
select art.*,su.nickname,su.avatar_url from forest_article art join forest_user su on su.id = #{idUser}
|
select art.*,su.nickname,su.avatar_url from forest_article art join forest_user su on su.id = #{idUser}
|
||||||
@ -162,4 +164,4 @@
|
|||||||
and FIND_IN_SET('公告',art.article_tags) > 0
|
and FIND_IN_SET('公告',art.article_tags) > 0
|
||||||
order by updated_time desc
|
order by updated_time desc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user