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(); + } }