Commit 88b43772 by zhouhb

[+]分页问题

1 parent de6b8ea0
......@@ -48,7 +48,7 @@ public class ConvertResponse {
*/
public static <E, T> Pagination<T> convertPage(RpcPagination<E> list, Class<T> clazz) {
Pagination pagination = new Pagination();
pagination.setPageCount(list.getPageNum());
pagination.setPageNum(list.getPageNum());
List<T> newList = convertList(list.getList(), clazz);
pagination.setData(newList);
pagination.setTotalCount((int) list.getTotal());
......
......@@ -12,7 +12,7 @@ public class Pagination<T> {
private Integer pageSize;
private Integer pageCount;
private Integer pageNum;
private Integer totalCount;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!