From 3a180d478c4e54ff8f6c27137e166580d6670cc5 Mon Sep 17 00:00:00 2001
From: Klaus <klaus@vividnext.co.kr>
Date: Sat, 15 Mar 2025 00:09:35 +0900
Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20-=20=EC=9D=BC?=
 =?UTF-8?q?=EB=B3=84=20=EC=A0=84=EC=B2=B4=20=ED=9A=8C=EC=9B=90=EC=88=98=20?=
 =?UTF-8?q?API=20-=20=ED=95=A9=EA=B3=84=20=EB=82=A0=EC=A7=9C=20=EB=B2=94?=
 =?UTF-8?q?=EC=9C=84=EB=A5=BC=20=EC=A0=84=EC=B2=B4=20=EB=82=A0=EC=A7=9C=20?=
 =?UTF-8?q?=EB=B2=94=EC=9C=84=EB=A1=9C=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../member/AdminMemberStatisticsService.kt         | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/statistics/member/AdminMemberStatisticsService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/statistics/member/AdminMemberStatisticsService.kt
index 319b9b3..754a013 100644
--- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/statistics/member/AdminMemberStatisticsService.kt
+++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/statistics/member/AdminMemberStatisticsService.kt
@@ -27,12 +27,12 @@ class AdminMemberStatisticsService(private val repository: AdminMemberStatistics
             throw SodaException("잘못된 접근입니다.")
         }
 
-        val startDate = dateRange.startDate
+        var startDate = LocalDate.parse(startDateStr).atStartOfDay()
             .atZone(ZoneId.of("Asia/Seoul"))
             .withZoneSameInstant(ZoneId.of("UTC"))
             .toLocalDateTime()
 
-        val endDate = dateRange.endDate
+        var endDate = LocalDate.parse(endDateStr).atTime(LocalTime.MAX)
             .atZone(ZoneId.of("Asia/Seoul"))
             .withZoneSameInstant(ZoneId.of("UTC"))
             .toLocalDateTime()
@@ -41,6 +41,16 @@ class AdminMemberStatisticsService(private val repository: AdminMemberStatistics
         val totalSignOutCount = repository.getTotalSignOutCount(startDate = startDate, endDate = endDate)
         val totalPaymentMemberCount = repository.getPaymentMemberCount(startDate = startDate, endDate = endDate)
 
+        startDate = dateRange.startDate
+            .atZone(ZoneId.of("Asia/Seoul"))
+            .withZoneSameInstant(ZoneId.of("UTC"))
+            .toLocalDateTime()
+
+        endDate = dateRange.endDate
+            .atZone(ZoneId.of("Asia/Seoul"))
+            .withZoneSameInstant(ZoneId.of("UTC"))
+            .toLocalDateTime()
+
         val signUpCountInRange = repository.getSignUpCountInRange(
             startDate = startDate,
             endDate = endDate,