diff --git a/src/main/java/mapper/ArticleMapper.xml b/src/main/java/mapper/ArticleMapper.xml index 971037e..7f28d9d 100644 --- a/src/main/java/mapper/ArticleMapper.xml +++ b/src/main/java/mapper/ArticleMapper.xml @@ -87,8 +87,7 @@ select art.*,su.nickname,su.avatar_url from vertical_article art join vertical_user su on art.article_author_id = su.id where article_status = '0' - and not exists (select * from vertical_tag_article vta where vta.id_article = art.id - and exists (select * from vertical_tag vt where vta.id_tag = vt.id and vt.tag_title = '划水')) + and FIND_IN_SET("划水",art.article_tags) = 0 order by updated_time desc @@ -134,4 +133,4 @@ - \ No newline at end of file +