Skip to content

WEB - 일간, 월간 통계 그래프 데이터 연결#321

Merged
ongsttt52 merged 3 commits intodevelopfrom
feat/statistic-graph
May 8, 2025
Merged

WEB - 일간, 월간 통계 그래프 데이터 연결#321
ongsttt52 merged 3 commits intodevelopfrom
feat/statistic-graph

Conversation

@ongsttt52
Copy link
Collaborator

#️⃣연관된 이슈

#314

📝작업 내용

월간, 일간 통계 그래프 데이터 조회 메서드 추가

월간, 일간 통계 API 응답에 그래프 데이터 추가

스크린샷 (선택)

image

public ApiResponse<MonthlyStatisticResponse> getMonthlyStatistic(String bizUuid, YearMonth date,
YearMonth targetDate) {

if (targetDate == null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

targetDate가 null인 경우는 언제가 있나요?
그리고 - 1년 + 1월은 어떤 의도를 가진 코드인가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

targetDate가 null인 경우는 언제가 있나요? 그리고 - 1년 + 1월은 어떤 의도를 가진 코드인가요?

date는 기준이 되는 월이고 targetDate는 그래프를 어디까지 보여줄지 결정하는 변수였는데 고정 12개월로 보여주는걸로 되어서 지금은 사용하지 않는 변수입니다

-1년 +1월은 -11개월보다 작년까지의 데이터를 보여준다는 뜻이 잘 드러나는 것 같아서 쓴건데 이것도 좀 이상하긴 하네요...

둘 다 수정해서 다시 푸시하겠습니다

@ongsttt52 ongsttt52 merged commit 4029982 into develop May 8, 2025
1 check passed
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.

4 participants