Merged
Conversation
…3-CheckMate into feature/#282-be-add-metrics-dto-field
1 task
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
jho7535
approved these changes
Feb 18, 2026
Comment on lines
+9
to
+10
| double orderCount, // 주문 건수 | ||
| double netAmount, // 실매출 |
Collaborator
There was a problem hiding this comment.
P4: long에서 double로 변경한 이유가 있을까요?
Collaborator
Author
There was a problem hiding this comment.
평균을 보내줘야 해서 double로 수정했습니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ 변경 사항
이번 PR에서는 분석 대시보드 및 상세 페이지의 데이터 정확도를 높이고, 사용자에게 더 풍부한 분석 지표를 제공하기 위해 피크타임 분석 로직 고도화, 식자재 등록 상태 확인 필드 추가, 그리고 주문 수단 도메인 확장을 진행했습니다.
#️⃣ 작업 상세 내용
1. 피크타임 분석 기능 고도화 및 DTO 개선
operatingWeeks)로 나눈 평균값으로 계산하도록 로직을 변경했습니다.long타입을Double타입으로 변경했습니다. (PeakTimeItem,DashboardPeakTimeResponse)DetailPeakTimeResponse에 오늘 데이터뿐만 아니라 비교 기간 데이터(week4Items), 피크 시간대 이동 방향(shiftDirection), 피크 시간 차이(diff) 등의 필드를 추가하여 상세한 비교 분석이 가능하도록 했습니다.PeakTimeAvgProjection에 실매출 합계와 운영 주차 카운트 로직을 추가하고,SalesAnalysisRepository의 쿼리를 이에 맞춰 업데이트했습니다.2. 식자재 소진량 분석 편의성 개선
IngredientUsageResponse에hasIngredient필드를 추가하여, 매장에 등록된 식재료가 없는 경우 프론트엔드에서 적절한 안내 문구를 노출할 수 있도록 개선했습니다.IngredientRepository에existsIngredientsByStoreId쿼리를 추가하여 효율적으로 등록 여부를 확인합니다.3. 주문 채널 도메인 확장
OrderChannelEnum에ETC("기타")타입을 추가하여 기존 채널(POS, KIOSK, 배달앱) 외의 유입 경로에 대응할 수 있도록 했습니다.4. 코드 안정성 및 예외 처리
null처리가 가능하도록 로직을 보완했습니다.beforeComparisonPeak)를 판단하는 유틸리티 로직을PeakTimeProcessor에 구현했습니다.#️⃣ 관련 이슈
📸 스크린샷 (선택)
변경 전
변경 후
📎 참고할만한 자료 (선택)