From 7d0c7845f48cf9669915a057e1e39ad50792453c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=A9=E1=86=BC?= =?UTF-8?q?=E1=84=8B=E1=85=AF=E1=86=AB=20Jongwon?= Date: Thu, 24 Aug 2023 14:45:39 +0900 Subject: [PATCH] =?UTF-8?q?[BUG=20FIX]=20#439:=20color=20int=20=ED=81=AC?= =?UTF-8?q?=EA=B8=B0=20=EC=B4=88=EA=B3=BC=20=EB=B2=84=EA=B7=B8=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/autoever2/cartag/service/ColorService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/autoever2/cartag/service/ColorService.java b/backend/src/main/java/autoever2/cartag/service/ColorService.java index 02fb4ef..4e47579 100644 --- a/backend/src/main/java/autoever2/cartag/service/ColorService.java +++ b/backend/src/main/java/autoever2/cartag/service/ColorService.java @@ -66,7 +66,7 @@ public int getPercent(Optional count, Long boughtCount) { if (count.isEmpty()) { return 0; } - return boughtCount.intValue() * 100 / count.get().intValue(); + return (int) (boughtCount * 100 / count.get()); } public String changeUrl(String value, int index) {