From 91a818d293eceba5d7e552954fc1c3df75f15421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=87=A0=E6=B5=B7?= Date: Tue, 16 Mar 2021 15:54:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sql=E6=9D=A1=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/articleMapper.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/mapper/articleMapper.xml b/src/main/resources/mapper/articleMapper.xml index 3454c75..a3803fb 100644 --- a/src/main/resources/mapper/articleMapper.xml +++ b/src/main/resources/mapper/articleMapper.xml @@ -204,8 +204,7 @@ tag_category as category, article_tag, user - where article.is_delete = false - and article.a_id = article_tag.a_id + where article.a_id = article_tag.a_id and article.a_category_id = category.t_id and category.is_category = true and article.a_author_id = user.u_id