Skip to content

Conversation

@jbh010204
Copy link
Member

✨ 구현한 기능

  • 학생 정보 목록 조회 기능을 구현
  • 전화번호와 이름으로 검색 가능하도록 설정
  • 신청 횟수를 통해 정렬 가능

📢 논의하고 싶은 내용

🎸 기타

Copy link
Contributor

@polyglot-k polyglot-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 별다르게 리뷰할게 없습니다! 견고하고 좋은 코드 같습니다 :) ✅

Comment on lines 31 to 36
for (FileRequest req : requests) {
fileUploadHelper.updateTag(req.s3Key());
faqAttachmentRepository.save(req.toAttachmentEntity(
req.fileName(), req.s3Key(), faqId
));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for..in이랑 .forEach() 랑 어떨 때 쓰시나요??

Comment on lines 78 to 83
private Predicate buildNameCondition(QProfileJpaEntity profile, String name) {
if (name != null && !name.isBlank()) {
return profile.userName.contains(name);
}
return null;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

보통 선행 if에서 null을 return 하도록하는게 관례상 에러 기저를 먼저 잡는 느낌이라서 깔끔한거 같아요!

Comment on lines 85 to 90
private Predicate buildPhoneCondition(QProfileJpaEntity profile, String phone) {
if (phone != null && !phone.isBlank()) {
return profile.phoneNumber.contains(phone);
}
return null;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도용

Comment on lines 23 to 25
@RequestParam(required = false) String name,
@RequestParam(required = false) String phone,
@RequestParam(defaultValue = "desc") String order,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public record StudentFilter(
    String name,
    String phone,
    String order
) {
    public StudentFilter {
        if (order == null || order.isBlank()) {
            order = "desc";
        }
    }
}
getStudents( @ModelAttribute StudentFilter filter )

이런식으로 필드를 합치는건 어떤가요?

@jbh010204 jbh010204 merged commit 55ecdda into develop Jul 5, 2025
1 check passed
@jbh010204 jbh010204 deleted the feature/mosu-32 branch July 6, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants