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] 추첨 로직 구현(#40) #40

Closed
3 tasks
blaxsior opened this issue Aug 8, 2024 · 0 comments · Fixed by #43
Closed
3 tasks

[feat] 추첨 로직 구현(#40) #40

blaxsior opened this issue Aug 8, 2024 · 0 comments · Fixed by #43
Assignees
Labels
feat 기능 구현

Comments

@blaxsior
Copy link
Collaborator

blaxsior commented Aug 8, 2024

어떤 기능인가요?

추첨 이벤트는 N명의 당첨자를 뽑는 기능을 가지고 있습니다. 해당 기능을 구현합니다.

작업 상세 내용

  • 추첨 이벤트 당첨자 선정 로직 구현
  • 당첨자 등록 기능 구현
  • 추첨 기능 api 연결
@blaxsior blaxsior added the feat 기능 구현 label Aug 8, 2024
@blaxsior blaxsior self-assigned this Aug 8, 2024
@blaxsior blaxsior changed the title [feat] 추첨 로직 구현 [feat] 추첨 로직 구현(#40) Aug 8, 2024
blaxsior added a commit that referenced this issue Aug 9, 2024
spring MVC에서는 뷰를 생성할 때 message를 자동으로 주입해줬지만, api 서버로 사용할 때는 예외에 자동으로 주입해주지 않음. 따라서 messagesource를 주입받아 직접 변환. 좀 더 일관된 방식이 있다면 변경 예정
blaxsior added a commit that referenced this issue Aug 9, 2024
JPA로 추첨 이벤트 당첨 정보를 저장하기 위해서는 연관 객체인 EventUser를 객체로 가져와 연관 관계를 지정해야 하고, insertAll을 수행해도 단일 insert 여러번으로 처리된다. 이런 불필요한 작업을 제거하기 위해 JDBC Template 기반으로 bulk insert 기능을 구현한다.
blaxsior added a commit that referenced this issue Aug 9, 2024
차후 2개의 과정으로 분리할 수도 있음
@win-luck win-luck linked a pull request Aug 9, 2024 that will close this issue
3 tasks
blaxsior added a commit that referenced this issue Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능 구현
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant