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} )