From 62f4a33d2231e6aa33b49fc0e27679e05cd65412 Mon Sep 17 00:00:00 2001 From: KwonJuHwan <118177454+KwonJuHwan@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:46:01 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix]=20=EC=97=B0=EB=8F=84=EB=B3=84=20?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=20key=20=EA=B0=92=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coolpeace/domain/dashboard/service/DashboardService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/coolpeace/domain/dashboard/service/DashboardService.java b/src/main/java/com/coolpeace/domain/dashboard/service/DashboardService.java index c52338c..354b63b 100644 --- a/src/main/java/com/coolpeace/domain/dashboard/service/DashboardService.java +++ b/src/main/java/com/coolpeace/domain/dashboard/service/DashboardService.java @@ -96,7 +96,9 @@ public CouponCountAvgResponse couponCountAvg(String memberId,Long accommodationI return getCouponCountAvgResponse(type, localCouponDownload, address); } - @Cacheable(value = "byYearCumulativeData", key = "#accommodationId+#year", cacheManager = "contentCacheManager") + @Cacheable(value = "byYearCumulativeData", + key = "T(String).valueOf(#accommodationId).concat(T(String).valueOf(#year))", + cacheManager = "contentCacheManager") public ByYearCumulativeDataResponse byYearCumulativeData(int year, String memberId, Long accommodationId) { Accommodation accommodation = checkAccommodationMatchMember(memberId, accommodationId); List monthlyStatisticsList = monthlyStatisticsRepository