Skip to content

hotfix/Payment : 예약 상태 null값 예약 완료로 수정#184

Merged
sete3683 merged 1 commit into
developfrom
hotfix/Payment
Apr 15, 2025
Merged

hotfix/Payment : 예약 상태 null값 예약 완료로 수정#184
sete3683 merged 1 commit into
developfrom
hotfix/Payment

Conversation

@zelly-log
Copy link
Copy Markdown
Collaborator

hotfix/Payment : 예약 상태 null값 예약 완료로 수정

🔘 Part

  • BE
  • Infra

🔎 PR Type

  • 새로운 기능 추가
  • 버그 수정
  • 주요 코드 리팩토링(성능 최적화 등)
  • 간단 코드 리팩토링(주석, 코드 컨벤션, 오타 수정 등)
  • 기타 (기타 사항 기입)

🔧 작업 내용 상세 작성

  • [레포 이름 #이슈번호](이슈 주소)

  • 작업 내용을 상세하게 작성해 주세요!

✔️ PR Checklist

  • 커밋 메세지를 컨벤션에 맞게 잘 적용 하였나요?

  • 테스트 코드 작성 / 단위 테스트 or 통합 테스트 진행 하셨나요?

@zelly-log zelly-log added bug 버그 관련 fix 기능 수정 labels Apr 15, 2025
@zelly-log zelly-log requested a review from sete3683 April 15, 2025 03:24
@zelly-log zelly-log self-assigned this Apr 15, 2025
*/
@Getter
@NoArgsConstructor
@NoArgsConstructor(force = true)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@NoArgsConstructorforce = true 옵션을 추가했습니다. 이 변경의 이유를 명시적으로 설명해주세요. 어떤 상황에서 이 옵션이 필요한지 설명이 필요합니다.

/**
* 예약 상태 (예: RESERVED, CANCELLED 등)
*/
@Builder.Default
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

BookingStatus 필드를 추가하고 기본값을 RESERVED로 설정했습니다. 좋은 변경입니다. 하지만 데이터베이스의 columnDefinition을 VARCHAR(20)로 제한한 이유에 대한 설명이 필요합니다. 더 긴 문자열을 허용해야 하는 상황이 발생할 수도 있습니다.

.paymentStatus(booking.getPaymentStatus())
.reservedAt(booking.getReservedAt())
.canCancel(canCancel(booking, today))
.bookingStatus(booking.getBookingStatus())
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

BookingQueryService에 bookingStatus를 추가했습니다. 이 변경으로 인해 Booking 객체의 bookingStatus 필드를 조회하는 로직이 추가되었는데, 이 변경이 필요한 이유를 명확하게 설명해 주시면 좋겠습니다. 어떤 기능을 향상시키기 위해 추가되었는지 알려주세요.

@sete3683 sete3683 merged commit 1f7a0a5 into develop Apr 15, 2025
1 check passed
@hellonaeunkim hellonaeunkim deleted the hotfix/Payment branch April 15, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 버그 관련 fix 기능 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants