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 1/2] 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 + From f572104ecfff13c7fc42717eb6083bff96f3efe6 Mon Sep 17 00:00:00 2001 From: caterpillar-_-42 Date: Fri, 25 Sep 2020 11:35:27 +0800 Subject: [PATCH 2/2] qwe --- src/main/java/mapper/ArticleMapper.xml | 2 +- src/main/resources/application-dev.yml | 93 ++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/application-dev.yml diff --git a/src/main/java/mapper/ArticleMapper.xml b/src/main/java/mapper/ArticleMapper.xml index 7f28d9d..18987cc 100644 --- a/src/main/java/mapper/ArticleMapper.xml +++ b/src/main/java/mapper/ArticleMapper.xml @@ -117,7 +117,7 @@ select vta.id, vta.id_tag, vta.id_article, vt.tag_title, vt.tag_icon_path, vt.tag_uri, vt.tag_description from vertical_tag vt join vertical_tag_article vta on vt.id = vta.id_tag where vta.id_article = #{idArticle}