From 502f7438c2e426f677f9c5d26bc0cbbd991ace06 Mon Sep 17 00:00:00 2001 From: hee9841 Date: Tue, 29 Oct 2024 00:09:35 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=99=9C=EB=8F=99=EC=9A=94=EC=95=BD?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=A0=80=EB=B2=88=EC=A3=BC=20=ED=8F=89?= =?UTF-8?q?=EA=B7=A0=EA=B0=92=EC=9D=84=20=EC=A1=B0=ED=9A=8C=ED=95=A0=20?= =?UTF-8?q?=EB=95=8C=20=EB=82=A0=EC=A7=9C=EA=B0=80=20=EC=9D=B4=EB=B2=88?= =?UTF-8?q?=EC=A3=BC=EB=A1=9C=20=EB=90=98=EC=96=B4=EC=9E=88=EB=8D=98=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=EB=A5=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dnd/runus/application/running/RunningRecordService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/dnd/runus/application/running/RunningRecordService.java b/src/main/java/com/dnd/runus/application/running/RunningRecordService.java index a680aa7a..2680c133 100644 --- a/src/main/java/com/dnd/runus/application/running/RunningRecordService.java +++ b/src/main/java/com/dnd/runus/application/running/RunningRecordService.java @@ -144,13 +144,13 @@ public RunningRecordWeeklySummaryResponse getWeeklySummary( weekSummaries = runningRecordRepository.findDailyDistancesMeterByDateRange( memberId, startWeekDate, nextOfEndWeekDate); avgValue = runningRecordRepository.findAvgDistanceMeterByMemberIdAndDateRange( - memberId, startWeekDate, nextOfEndWeekDate); + memberId, startWeekDate.minusDays(7), nextOfEndWeekDate.minusDays(7)); conversionFactor = METERS_IN_A_KILOMETER; } else { weekSummaries = runningRecordRepository.findDailyDurationsSecByDateRange( memberId, startWeekDate, nextOfEndWeekDate); avgValue = runningRecordRepository.findAvgDurationSecByMemberIdAndDateRange( - memberId, startWeekDate, nextOfEndWeekDate); + memberId, startWeekDate.minusDays(7), nextOfEndWeekDate.minusDays(7)); conversionFactor = SECONDS_PER_HOUR; }