Skip to content

#54 판매자 내 판매 목록 조회 API - #56

Open
KimMonkey2945 wants to merge 3 commits into
feature/53from
feature/54
Open

KimMonkey2945 wants to merge 3 commits into
feature/53from
feature/54

Conversation

@KimMonkey2945

Copy link
Copy Markdown
Collaborator

close #54

작업 내용

  • GET /api/members/me/group-purchases (판매자 전용, status·page·size, 최신순)
  • 화면 상태: DB가 OPEN이어도 마감 시각이 지났으면 CLOSED (상세와 같은 기준)
  • 인원·단가 출처는 DB 상태로 판단 — OPEN(정산 전 포함)은 Redis MGET, CLOSED·CANCELED는 final_headcount·final_price
  • 합계: OPEN·CLOSED는 JOINED 수량 합, 금액은 정산된 CLOSED만 수량 × 확정 단가(long). CANCELED는 둘 다 null
  • Redis·수량 합은 대상 id가 있을 때만 호출, Redis 실패 시 구매자 목록과 같은 대체(0명·기본가)
  • GroupPurchaseQueryService 생성자 변경에 맞춰 GroupPurchaseQueryServiceTest 수정

테스트

  • 상태별 인원·단가 출처와 합계(정산 전은 CLOSED + Redis 값 + 금액 없음), 취소 건만 있는 페이지
  • 구매자 403, 없는 status 값 400

@KimMonkey2945 KimMonkey2945 self-assigned this Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93d84402-f572-4aeb-939c-ad04cb55b6c2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

1 participant