Repository navigation
refactor: 예약 시간 판단·장부 방향 부호·알림 상태를 모델로 옮긴다 - #164
Merged
Merged
Conversation
…o chore/merge-train
…nto chore/merge-train
… chore/merge-train
…o chore/merge-train
…to chore/merge-train
…chore/merge-train
…to chore/merge-train
…into chore/merge-train # Conflicts: # src/main/java/com/bcsdlab/bcsdinternalapiv2/curriculum/service/AdminCurriculumService.java
…o chore/merge-train
- Reservation.overlaps(start, end), hasStartedAt(now): 서비스에 있던 구간 겹침·시작 여부 계산을 엔티티로 옮긴다.
- EntryType.signed(amount): ImportSequencer·DuesCalculator에 따로 있던 입금 +, 출금 - 계산을 하나로 모은다.
- 회비 알림 발송 건·회원별 상태 문자열("IN_PROGRESS"/"DONE", "PENDING"/"SENT"/"FAILED")을
NotificationBatchStatus·NotificationRecipientStatus enum으로 바꾼다. 값은 V26 체크 제약과 같아 저장 형식은 그대로다.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 18, 2026
ff1451
marked this pull request as ready for review
October 18, 2026 13:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
ReservationService.overlapsExisting의 람다 →Reservation.overlaps(start, end)ReservationService.hasStarted의 날짜·분 계산 →Reservation.hasStartedAt(now)(시간대 변환은 Clock을 가진 서비스에 남깁니다)ImportSequencer·DuesCalculator에 따로 있던 삼항식 →EntryType.signed(amount)"IN_PROGRESS"·"SENT"등 문자열 비교 →NotificationBatchStatus·NotificationRecipientStatusenumck_dues_notification_*_status)과 같습니다. DB에는 여전히 같은 문자열로 저장되고, 스키마 변경은 없습니다.테스트
ReservationTest: 맞닿은 구간은 겹치지 않음, 시작 시각과 같으면 시작한 것으로 봄 등 경계값EntryTypeTestDuesCalculatorTest,ShinhanXlsxParserTest통과머지 순서
#148~#157 머지 후 main으로 rebase하고 ready로 바꿉니다. 이 PR의 변경은 마지막 커밋 하나입니다. #162와
ReservationService가 겹치지만 서로 다른 줄입니다.