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

프로모션 조회 기능 추가 #106

Merged
merged 6 commits into from
Jan 11, 2024
Merged

프로모션 조회 기능 추가 #106

merged 6 commits into from
Jan 11, 2024

Conversation

chaewss
Copy link
Member

@chaewss chaewss commented Nov 11, 2023

🎯 Issue

🔑 Key Changes

  • 프로모션 DB schema를 업데이트 했습니다.
  • 프로모션 조회 기능을 추가했습니다.
  • 테스트 코드를 작성했습니다.
  • API 문서를 작성했습니다.

@chaewss chaewss self-assigned this Nov 11, 2023
@chaewss chaewss linked an issue Nov 11, 2023 that may be closed by this pull request
3 tasks

public interface PromotionRepository extends JpaRepository<Promotion, Long> {

@Query(value = "select p from Promotion p where p.startAt <= :now and p.endAt > :now ORDER BY p.priority")
Copy link
Member

Choose a reason for hiding this comment

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

@Lock(LockModeType.OPTIMISTIC) 거는 경우 제외하고는 JPQL 말고 QueryDsl로 다 통일하기로 했었는데 통일하는 게 좋을 것 같아요!

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 수정하겠습니다!

Copy link
Member

@feel-coding feel-coding left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 :)

@feel-coding feel-coding merged commit ed32e18 into develop Jan 11, 2024
1 check passed
@chaewss chaewss deleted the feature#105 branch February 6, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

프로모션 조회 기능 추가
2 participants