mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-08-24 17:42:42 +00:00
修复部分分页接口的查询bug
This commit is contained in:
@@ -210,11 +210,7 @@ public class SearchServiceImpl implements SearchService {
|
||||
}
|
||||
}
|
||||
|
||||
PageBean<EsBookVO> pageBean = new PageBean<>(bookList);
|
||||
pageBean.setTotal(total.longValue());
|
||||
pageBean.setPageNum(page);
|
||||
pageBean.setPageSize(pageSize);
|
||||
return pageBean;
|
||||
return new PageBean<>(page,pageSize,total.longValue(), bookList);
|
||||
}
|
||||
throw new BusinessException(ResponseStatus.ES_SEARCH_FAIL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user