修复部分分页接口的查询bug

This commit is contained in:
xiaoyang
2021-04-01 21:51:30 +08:00
parent 57d0325e05
commit 45b4ce7b18
12 changed files with 73 additions and 54 deletions

View File

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