From cbf18ae3d799d42a6375472dd988da565dd5192a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?qkr7828=28=EB=B0=95=EC=9E=AC=EC=9A=B0=29?= <박재우@DESKTOP-EF7ECBO> Date: Tue, 11 Oct 2022 18:13:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jpa/repository/pty/PtyGroupQueryRepository.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java b/src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java index ad984af..3e619b5 100644 --- a/src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java +++ b/src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java @@ -291,7 +291,7 @@ public class PtyGroupQueryRepository{ } - public List aprvList(BasGroupAprvRqModel rq){ + public PageImpl aprvList(BasGroupAprvRqModel rq, Pageable pageable){ QPtyGroupBas bas = QPtyGroupBas.ptyGroupBas; QPtyCstmrGroup dtl = QPtyCstmrGroup.ptyCstmrGroup; QPtyCstmrBas cstmr = QPtyCstmrBas.ptyCstmrBas; @@ -361,8 +361,8 @@ public class PtyGroupQueryRepository{ // .where(dtl.groupAuthCd.ne("CREATER")) .where(dtl.groupAuthCd.ne("MASTER")) .orderBy(bas.createDt.desc()) -// .offset(pageable.getOffset()) -// .limit(pageable.getPageSize()) + .offset(pageable.getOffset()) + .limit(pageable.getPageSize()) .fetch(); List result = new ArrayList(); @@ -374,14 +374,14 @@ public class PtyGroupQueryRepository{ result.add(model); } } - return result; + return new PageImpl<>(result, pageable, result.size()); } for(BasGroupAprvModel model : queryResult) { model.setMemberName(EncryptUtils.decrypt(model.getMemberName())); result.add(model); } - return result; + return new PageImpl<>(result, pageable, result.size()); } public long aprvCount(BasGroupAprvRqModel rq){ QPtyGroupBas bas = QPtyGroupBas.ptyGroupBas;