mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-27 01:30:51 +00:00
页面不存在则跳转到404页面
This commit is contained in:
parent
7494fe431a
commit
39c19ac004
@ -235,8 +235,7 @@ public class BookServiceImpl implements BookService {
|
||||
.where(id, isEqualTo(bookId))
|
||||
.build()
|
||||
.render(RenderingStrategies.MYBATIS3);
|
||||
List<Book> books = bookMapper.selectMany(selectStatement);
|
||||
return books.size() > 0 ? books.get(0) : null;
|
||||
return bookMapper.selectMany(selectStatement).get(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -265,8 +264,7 @@ public class BookServiceImpl implements BookService {
|
||||
.where(BookIndexDynamicSqlSupport.id, isEqualTo(bookIndexId))
|
||||
.build()
|
||||
.render(RenderingStrategies.MYBATIS3);
|
||||
List<BookIndex> bookIndices = bookIndexMapper.selectMany(selectStatement);
|
||||
return bookIndices.size() > 0 ? bookIndices.get(0) : null;
|
||||
return bookIndexMapper.selectMany(selectStatement).get(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user