From e69d4412ba0b1f862c64a150a32de8197a376fed Mon Sep 17 00:00:00 2001 From: LHS-11 Date: Fri, 5 Jan 2024 00:01:00 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=8E=98=EC=9D=B4=EC=A7=95=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=EC=97=90=EC=84=9C=20=EA=B2=B9=EC=B9=98?= =?UTF-8?q?=EB=8A=94=20=EB=B6=80=EB=B6=84=EC=9D=B4=20=EC=97=86=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20limit(pageable.getPageSize()+1)=20->=20limit(pageab?= =?UTF-8?q?le.getPageSize())=20=EB=A1=9C=20=EC=88=98=EC=A0=95=20(=20?= =?UTF-8?q?=EC=B2=AB=EB=B2=88=EC=A7=B8=20=EC=9D=B8=EB=8D=B1=EC=8A=A4?= =?UTF-8?q?=EC=97=90=EC=84=9C=200=EB=B2=88=EB=B6=80=ED=84=B0=20size+1=20?= =?UTF-8?q?=EB=A7=8C=ED=81=BC=20=EB=B0=98=ED=99=98,=20=EB=91=90=EB=B2=88?= =?UTF-8?q?=EC=A7=B8=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=EC=97=90=EC=84=9C=20siz?= =?UTF-8?q?e=EB=B2=88=20=EB=B6=80=ED=84=B0=202*size+1=20=EB=A7=8C=ED=81=BC?= =?UTF-8?q?=20=EB=B0=98=ED=99=98=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zenefitserver/domain/policy/dao/PolicyQueryRepository.java | 2 +- .../infra/notification/dao/NotificationQueryRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cmc/zenefitserver/domain/policy/dao/PolicyQueryRepository.java b/src/main/java/com/cmc/zenefitserver/domain/policy/dao/PolicyQueryRepository.java index 9fddb6a..5a41043 100644 --- a/src/main/java/com/cmc/zenefitserver/domain/policy/dao/PolicyQueryRepository.java +++ b/src/main/java/com/cmc/zenefitserver/domain/policy/dao/PolicyQueryRepository.java @@ -71,7 +71,7 @@ public Page searchByPaging(User user, SupportPolicyType s List results = query.orderBy(policySort(pageable)) .offset(pageable.getOffset()) - .limit(pageable.getPageSize() + 1) + .limit(pageable.getPageSize()) .fetch(); return PageableExecutionUtils.getPage(results, pageable, query::fetchCount); diff --git a/src/main/java/com/cmc/zenefitserver/global/infra/notification/dao/NotificationQueryRepository.java b/src/main/java/com/cmc/zenefitserver/global/infra/notification/dao/NotificationQueryRepository.java index 72abc30..a2045af 100644 --- a/src/main/java/com/cmc/zenefitserver/global/infra/notification/dao/NotificationQueryRepository.java +++ b/src/main/java/com/cmc/zenefitserver/global/infra/notification/dao/NotificationQueryRepository.java @@ -41,7 +41,7 @@ public Page searchNotificationBySlice(User user List results = query.orderBy(notification.createdDate.desc()) .offset(pageable.getOffset()) - .limit(pageable.getPageSize() + 1) + .limit(pageable.getPageSize()) .fetch(); // return checkLastPage(pageable, results);