Skip to content

feat(stats): 월간 리포트 V1 V2 통계 통합 - #222

Merged
1Seob merged 1 commit into
developfrom
feat/stats-monthly-report
Aug 10, 2026
Merged

feat(stats): 월간 리포트 V1 V2 통계 통합#222
1Seob merged 1 commit into
developfrom
feat/stats-monthly-report

Conversation

@1Seob

@1Seob 1Seob commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

📝 요약(Summary)

  • 레거시 monthly_reports만 반영되던 월간 리포트 통계에 monthly_reports_v2 집계를 추가했습니다.
  • V1, V2와 두 값을 합산한 Total 추이를 함께 확인할 수 있도록 통계 화면을 개선했습니다.

주요 변경사항

  • 통계 집계
    • 완료 리포트와 현재 생성 중 리포트를 V1·V2 엔티티별로 집계합니다.
    • 최근 5개월의 V1·V2 데이터를 동일한 월 기준으로 정렬하고 Total을 합산합니다.
    • ViewModel에 완료 및 진행 중 건수의 V1·V2·Total 값을 제공합니다.
  • 통계 화면
    • 완료 월간 리포트 차트에 monthly_reports, monthly_reports_v2, Total 세 시리즈를 표시합니다.
    • 진행 중 KPI에 Total과 테이블별 상세 건수를 함께 표시합니다.
    • 버전 구분이 필요하지 않은 기존 통계 차트는 단일 시리즈를 유지합니다.
  • 테스트
    • 서비스 단위 테스트로 월별 빈 구간 보정과 V1·V2 Total 합산을 검증합니다.
    • Testcontainers PostgreSQL 통합 테스트로 버전별 완료 및 진행 중 JPQL 집계를 검증합니다.

검증

  • .\gradlew.bat compileJava 통과
  • processResources 통과
  • MonthlyStatsServiceTest 통과
  • MonthlyStatsRepositoryTest 통과
  • 월간 통계 인라인 JavaScript 문법 검사 통과
  • git diff --check 통과

참고

  • 교차 버전 중복 생성이 배제된 기존 도메인 불변 조건에 따라 Total은 V1과 V2 건수를 단순 합산합니다.

🔗 Related Issue

  • Closes:

💬 공유사항

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • PR 제목을 커밋 메시지 컨벤션에 맞게 작성했습니다.

monthly_reports와 monthly_reports_v2의 완료 및 진행 중 건수를 분리 집계하고 Total을 합산함. 월간 통계 차트를 세 시리즈로 확장함
@1Seob
1Seob merged commit 686cca4 into develop Aug 10, 2026
1 check passed
@1Seob
1Seob deleted the feat/stats-monthly-report branch August 10, 2026 05:24
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