From a6d47009e8eb527692135e7a98ec51cebca26882 Mon Sep 17 00:00:00 2001 From: caterpillar-_-42 Date: Fri, 25 Sep 2020 13:05:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=8D=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=88=92=E6=B0=B4=E8=B4=B4sql=E6=9D=A1=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/mapper/ArticleMapper.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/mapper/ArticleMapper.xml b/src/main/java/mapper/ArticleMapper.xml index 971037e..2bdc49b 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