From 85044aae24e3c460104c8d1d5be58f920bb73c2a Mon Sep 17 00:00:00 2001 From: caterpillar <58500946+zZ-10@users.noreply.github.com> Date: Fri, 25 Sep 2020 11:12:35 +0800 Subject: [PATCH] Update ArticleMapper.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 过滤划水贴 --- src/main/java/mapper/ArticleMapper.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 +