From 2f088a0af11604ebd76e7b78da9502205ddfd200 Mon Sep 17 00:00:00 2001 From: Cho Sangwook <82208159+Sangwook02@users.noreply.github.com> Date: Sat, 2 Mar 2024 20:07:43 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=9A=8C=EB=B9=84=20=EB=82=A9?= =?UTF-8?q?=EB=B6=80=20=EC=97=AC=EB=B6=80=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C?= =?UTF-8?q?=20=EA=B0=80=EC=9E=85=20=EC=8B=A0=EC=B2=AD=EC=84=9C=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=ED=95=9C=20=ED=9A=8C=EC=9B=90=EB=A7=8C=20=ED=8F=AC?= =?UTF-8?q?=ED=95=A8=20(#227)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gdsc/domain/member/dao/MemberCustomRepositoryImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gdschongik/gdsc/domain/member/dao/MemberCustomRepositoryImpl.java b/src/main/java/com/gdschongik/gdsc/domain/member/dao/MemberCustomRepositoryImpl.java index a0f55aa2a..a6249f8ac 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/member/dao/MemberCustomRepositoryImpl.java +++ b/src/main/java/com/gdschongik/gdsc/domain/member/dao/MemberCustomRepositoryImpl.java @@ -106,7 +106,8 @@ public Page findAllByPaymentStatus( .where( queryOption(queryRequest), eqStatus(MemberStatus.NORMAL), - eqRequirementStatus(member.requirement.paymentStatus, paymentStatus)) + eqRequirementStatus(member.requirement.paymentStatus, paymentStatus), + isStudentIdNotNull()) .offset(pageable.getOffset()) .limit(pageable.getPageSize()) .orderBy(member.createdAt.desc()) @@ -210,4 +211,8 @@ private BooleanExpression eqDiscordUsername(String discordUsername) { private BooleanExpression eqNickname(String nickname) { return nickname != null ? member.nickname.containsIgnoreCase(nickname) : null; } + + private BooleanExpression isStudentIdNotNull() { + return member.studentId.isNotNull(); + } }