diff --git a/src/main/java/cokr/xit/foundation/data/paging/Pageable.java b/src/main/java/cokr/xit/foundation/data/paging/Pageable.java index 98f278b..4217bec 100644 --- a/src/main/java/cokr/xit/foundation/data/paging/Pageable.java +++ b/src/main/java/cokr/xit/foundation/data/paging/Pageable.java @@ -76,20 +76,20 @@ public interface Pageable { @SuppressWarnings("unchecked") Map params = (Map)obj; return new Pageable.Info( - Pageable.getFetchSize(params), - Pageable.getPageNum(params) + Pageable.getPageNum(params), + Pageable.getFetchSize(params) ); } else if (obj instanceof QueryRequest) { QueryRequest req = (QueryRequest)obj; return new Pageable.Info( - req.getFetchSize(), - req.getPageNum() + req.getPageNum(), + req.getFetchSize() ); } else if (obj instanceof Pageable) { Pageable pageable = (Pageable)obj; return new Pageable.Info( - pageable.getFetchSize(), - pageable.getPageNum() + pageable.getPageNum(), + pageable.getFetchSize() ); } else return null;