Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : 이벤트 티켓상품 조회 #238

Merged
merged 4 commits into from
Jan 31, 2023

Conversation

kim-wonjin
Copy link
Member

개요

작업사항

  • 해당 이벤트의 티켓상품들을 조회하는 api
  • 이벤트 상태와 무관하게 이벤트 존재여부만 확인
  • 티켓상품, 옵션그룹 상태컬럼 추가
 // 상태
    @Enumerated(EnumType.STRING)
    @ColumnDefault(value = "'VALID'")
    private TicketItemStatus ticketItemStatus = TicketItemStatus.VALID;

@ColumnDefault는 이미 쌓인 로컬 데이터들 초기화 땜시 잠시 넣었음

  • 어드민 용 조회 API는 프론트와 상의 후 따로 만들기로 결정함

변경로직

Copy link
Member

@ImNM ImNM left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 17 to 21
public OptionGroup queryOptionGroup(Long optionGroupId) {
return optionGroupRepository
.findById(optionGroupId)
.findByIdAndOptionGroupStatus(optionGroupId, OptionGroupStatus.VALID)
.orElseThrow(() -> OptionGroupNotFoundException.EXCEPTION);
}
Copy link
Member

Choose a reason for hiding this comment

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

구웃!

Comment on lines 18 to 22
public TicketItem queryTicketItem(Long ticketItemId) {
return ticketItemRepository
.findById(ticketItemId)
.findByIdAndTicketItemStatus(ticketItemId, TicketItemStatus.VALID)
.orElseThrow(() -> TicketItemNotFoundException.EXCEPTION);
}
Copy link
Member

Choose a reason for hiding this comment

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

확인임둥

@ImNM
Copy link
Member

ImNM commented Jan 30, 2023

근데 스쿼시머지할 때 이름좀 바꿔주세요 컨벤션 맞춰서 ㅎㅎ

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 253 Code Smells

17.8% 17.8% Coverage
0.0% 0.0% Duplication

@ImNM ImNM changed the title Feature/223 이벤트 티켓상품 조회 feat : 이벤트 티켓상품 조회 Jan 30, 2023
Copy link
Member

@gengminy gengminy left a comment

Choose a reason for hiding this comment

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

굿입니다 LGTM 👍

Comment on lines +48 to +50
@Enumerated(EnumType.STRING)
@ColumnDefault(value = "'VALID'")
private OptionGroupStatus optionGroupStatus = OptionGroupStatus.VALID;
Copy link
Member

Choose a reason for hiding this comment

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

요 부분 @ColumnDefault 굳이 안적어줘도 대입 연산하면 기본값 들어가지 않나요?

Copy link
Member

Choose a reason for hiding this comment

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

아마 디비에 ddl 로 들어가는 옵션일 거에요!

Copy link
Member Author

Choose a reason for hiding this comment

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

작업사항에 적어놨습니다만 ㅎㅎ!!!!!

@kim-wonjin kim-wonjin merged commit a2168bd into dev Jan 31, 2023
@kim-wonjin kim-wonjin deleted the feature/223-get-event-ticket-item branch January 31, 2023 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 [feature] 이벤트 티켓상품 조회
3 participants