mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-27 01:30:51 +00:00
作家作品列表分页修复
This commit is contained in:
parent
396452b46e
commit
ede7aca66d
@ -496,11 +496,12 @@ public class BookServiceImpl implements BookService {
|
|||||||
@Override
|
@Override
|
||||||
public PageBean<Book> listBookPageByUserId(Long userId, int page, int pageSize) {
|
public PageBean<Book> listBookPageByUserId(Long userId, int page, int pageSize) {
|
||||||
|
|
||||||
|
Author author = authorService.queryAuthor(userId);
|
||||||
PageHelper.startPage(page, pageSize);
|
PageHelper.startPage(page, pageSize);
|
||||||
|
|
||||||
SelectStatementProvider selectStatement = select(id, bookName, picUrl, catName, visitCount, yesterdayBuy, lastIndexUpdateTime, updateTime, wordCount, lastIndexName, status)
|
SelectStatementProvider selectStatement = select(id, bookName, picUrl, catName, visitCount, yesterdayBuy, lastIndexUpdateTime, updateTime, wordCount, lastIndexName, status)
|
||||||
.from(book)
|
.from(book)
|
||||||
.where(authorId, isEqualTo(authorService.queryAuthor(userId).getId()))
|
.where(authorId, isEqualTo(author.getId()))
|
||||||
.orderBy(BookDynamicSqlSupport.createTime.descending())
|
.orderBy(BookDynamicSqlSupport.createTime.descending())
|
||||||
.build()
|
.build()
|
||||||
.render(RenderingStrategies.MYBATIS3);
|
.render(RenderingStrategies.MYBATIS3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user