From 9f385a7d7b2016d1d7740946ab26027e08934b50 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: Wed, 12 Oct 2022 11:35:39 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"=EC=98=A4=ED=83=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a79cf336a59b8022a9a8c900a4ec142f9d13b1d6. --- .../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;