Skip to content

[REFACTOR/#274] 맵, 알림, 스탬프 기능 리팩토링#274

Merged
leesumin0526 merged 5 commits intodevelopfrom
refactor/#270-map-api
Feb 28, 2026
Merged

[REFACTOR/#274] 맵, 알림, 스탬프 기능 리팩토링#274
leesumin0526 merged 5 commits intodevelopfrom
refactor/#270-map-api

Conversation

@leesumin0526
Copy link
Contributor

@leesumin0526 leesumin0526 commented Feb 27, 2026

#️⃣연관된 이슈

#270

📝작업 내용

1. 맵 매장 조회 개선

  • 기존: 전체 paper ID 기준으로 중복 제거 → 한 매장에 여러 제휴가 있어도 하나만 표시됨
  • 수정: 매장별로 paper ID 중복 제거 → 각 매장의 모든 제휴가 표시됨

2. 알림 시스템 리팩토링

  • Notification.refId를 nullable로 변경 (STAMP 타입 등 refId 불필요한 경우 대응)
  • OutboxCreatedEvent에서 Notification 엔티티 참조 제거, 필요한 필드만 직접 전달
  • sendIfEnabled 로직 수정 (알림 설정 활성화 또는 미설정 시 큐 전송, 비활성화 시 DB만 저장)
  • OutboxAfterCommitPublisher에서 refId null 처리 추가
  • 알림 전송 실패가 스탬프 적립을 롤백시키지 않도록 예외 처리 추가

3. 스탬프 이벤트 응모 자동화

  • TemporaryQrServiceImpl에 스탬프 10의 배수(10, 20, 30...) 체크 로직 추가
  • 10의 배수 달성 시 StampEventApplicant 저장 및 알림 전송 후 스탬프 초기화
  • 제휴 사용 시에는 스탬프만 증가하고 이벤트 응모는 QR 인증 시에만 처리

- 기존: 전체 paper ID 기준으로 중복 제거 → 한 매장에 여러 제휴가 있어도 하나만 표시됨
- 수정: 매장별로 paper ID 중복 제거 → 각 매장의 모든 제휴가 표시됨
@leesumin0526 leesumin0526 self-assigned this Feb 27, 2026
@leesumin0526 leesumin0526 added the ♻️ refactor Refactor code label Feb 27, 2026
@leesumin0526 leesumin0526 changed the title Refactor/#270 map api [REFACTOR/#270] map api Feb 27, 2026
…조 개선

 - Notification.refId를 nullable로 변경 (STAMP 타입 등 refId 불필요한 경우 대응)
 - OutboxCreatedEvent에서 Notification 엔티티 참조 제거, 필요한 필드만 직접 전달
 - sendIfEnabled 로직 수정 (알림 설정 활성화 또는 미설정 시 큐 전송, 비활성화 시 DB만 저장)
 - OutboxAfterCommitPublisher에서 refId null 처리 추가
 - TemporaryQrServiceImpl에 스탬프 10의 배수(10, 20, 30...) 체크 로직 추가
 - 10의 배수 달성 시 StampEventApplicant 저장 및 알림 전송 후 스탬프 초기화
 - 제휴 사용 시에는 스탬프만 증가하고 이벤트 응모는 QR 인증 시에만 처리
@leesumin0526 leesumin0526 changed the title [REFACTOR/#270] map api [REFACTOR/#270] 맵, 알림, 스탬프 기능 리팩토링 Feb 28, 2026
@leesumin0526 leesumin0526 merged commit 0271ef9 into develop Feb 28, 2026
1 check passed
@leesumin0526 leesumin0526 changed the title [REFACTOR/#270] 맵, 알림, 스탬프 기능 리팩토링 [REFACTOR/#274] 맵, 알림, 스탬프 기능 리팩토링 Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ refactor Refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant