페이징 정보 설정 수정

master
mjkhan21 11 months ago
parent 96b08f20f1
commit e6357b5cd6

@ -76,20 +76,20 @@ public interface Pageable {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
Map<String, ?> params = (Map<String, ?>)obj; Map<String, ?> params = (Map<String, ?>)obj;
return new Pageable.Info( return new Pageable.Info(
Pageable.getFetchSize(params), Pageable.getPageNum(params),
Pageable.getPageNum(params) Pageable.getFetchSize(params)
); );
} else if (obj instanceof QueryRequest) { } else if (obj instanceof QueryRequest) {
QueryRequest req = (QueryRequest)obj; QueryRequest req = (QueryRequest)obj;
return new Pageable.Info( return new Pageable.Info(
req.getFetchSize(), req.getPageNum(),
req.getPageNum() req.getFetchSize()
); );
} else if (obj instanceof Pageable) { } else if (obj instanceof Pageable) {
Pageable pageable = (Pageable)obj; Pageable pageable = (Pageable)obj;
return new Pageable.Info( return new Pageable.Info(
pageable.getFetchSize(), pageable.getPageNum(),
pageable.getPageNum() pageable.getFetchSize()
); );
} else } else
return null; return null;

Loading…
Cancel
Save