From 08e45793d1ed1bd18047f846c3dd131f1f868edb 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: Tue, 22 Aug 2023 17:01:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[BUG=20FIX]=20#402:=20HMG=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=200=20=EC=9D=B4=ED=95=98=EC=9D=BC=20?= =?UTF-8?q?=EC=8B=9C=20=EC=97=86=EB=8A=94=20=EA=B2=83=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=ED=8C=90=EB=8B=A8=ED=95=98=EB=8F=84=EB=A1=9D=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 --- .../src/main/java/autoever2/cartag/service/OptionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/autoever2/cartag/service/OptionService.java b/backend/src/main/java/autoever2/cartag/service/OptionService.java index 11d5520..eab9301 100644 --- a/backend/src/main/java/autoever2/cartag/service/OptionService.java +++ b/backend/src/main/java/autoever2/cartag/service/OptionService.java @@ -52,7 +52,7 @@ public List getDefaultOptionList(int carId) { .optionName(data.getOptionName()) .optionCategoryName(data.getOptionCategoryName()) .optionImage(data.getOptionImage()) - .hasHmgData(data.getOptionUsedCount() != null).build()).collect(Collectors.toList()); + .hasHmgData(data.getOptionUsedCount() > 0).build()).collect(Collectors.toList()); } //TODO: RuntimeException 처리 From 916d084f0cca50c9cc010d9622676e5b34a0b66b 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: Tue, 22 Aug 2023 17:09:21 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[BUG=20FIX]=20#402:=20HMG=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=200=20=EC=9D=B4=ED=95=98=EC=9D=BC=20?= =?UTF-8?q?=EC=8B=9C=20=EC=97=86=EB=8A=94=20=EA=B2=83=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=ED=8C=90=EB=8B=A8=20TEST=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/autoever2/cartag/service/OptionServiceTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/test/java/autoever2/cartag/service/OptionServiceTest.java b/backend/src/test/java/autoever2/cartag/service/OptionServiceTest.java index 00a63be..d51da5a 100644 --- a/backend/src/test/java/autoever2/cartag/service/OptionServiceTest.java +++ b/backend/src/test/java/autoever2/cartag/service/OptionServiceTest.java @@ -221,6 +221,7 @@ void getDefaultOptionList() { .optionName("적외선 무릎 워머") .optionCategoryName("악세사리") .optionImage("/images/options/sub/warmer.jpg") + .optionUsedCount(0.0) .build(); OptionShortMappedDto data3 = OptionShortMappedDto.builder() .optionId(3)