From 9c580cf6d917ac4e396183ddecfc797fa1ebc7dd 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:30:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E7=AB=A0=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当open字段为false时文章应当不被感知 而之前的版本并没有做强制要求 --- src/main/resources/mapper/articleMapper.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/articleMapper.xml b/src/main/resources/mapper/articleMapper.xml index c08286a..dae7726 100644 --- a/src/main/resources/mapper/articleMapper.xml +++ b/src/main/resources/mapper/articleMapper.xml @@ -198,7 +198,8 @@ from articleView where articleId = (select max(articleId) from articleView - where articleId < #{id} + where isOpen = true + and articleId < #{id} )