fix: 文章不可见
当open字段为false时文章应当不被感知 而之前的版本并没有做强制要求
This commit is contained in:
@@ -198,7 +198,8 @@
|
||||
from articleView
|
||||
where articleId = (select max(articleId)
|
||||
from articleView
|
||||
where articleId < #{id}
|
||||
where isOpen = true
|
||||
and articleId < #{id}
|
||||
)
|
||||
</select>
|
||||
<select id="getNextArticle" resultMap="articleViewResultMap">
|
||||
@@ -206,7 +207,8 @@
|
||||
from articleView
|
||||
where articleId = (select min(articleId)
|
||||
from articleView
|
||||
where articleId > #{id}
|
||||
where isOpen = true
|
||||
and articleId > #{id}
|
||||
)
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user