From 61de3e102c01ccd3ced522cece49f508340775a7 Mon Sep 17 00:00:00 2001 From: Soyeon Cha <89539031+Soyeon-Cha@users.noreply.github.com> Date: Sun, 26 Nov 2023 16:43:21 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"[=EC=B0=A8=EC=86=8C=EC=97=B0]=20?= =?UTF-8?q?=EC=83=81=ED=92=88=20=EC=83=81=EC=84=B8=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=B0=9C=20=EC=97=AC=EB=B6=80=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/MARKETFUBY/Product/dto/ProductDetailDto.java | 4 ++-- src/main/java/MARKETFUBY/Product/service/ProductService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/MARKETFUBY/Product/dto/ProductDetailDto.java b/src/main/java/MARKETFUBY/Product/dto/ProductDetailDto.java index 0e5cfb1..0e836a5 100644 --- a/src/main/java/MARKETFUBY/Product/dto/ProductDetailDto.java +++ b/src/main/java/MARKETFUBY/Product/dto/ProductDetailDto.java @@ -24,7 +24,7 @@ public class ProductDetailDto { private String info; private String delivery; private String seller; - private boolean isLiked; + private Boolean isLiked; private String detailInfoImg; private String productInfoImg; private List reviewImages; @@ -33,7 +33,7 @@ public class ProductDetailDto { private List inquiries; @Builder - public ProductDetailDto(Product product, boolean isLiked, List reviewImages, Integer reviewCount, List reviews, List inquiries){ + public ProductDetailDto(Product product, Boolean isLiked, List reviewImages, Integer reviewCount, List reviews, List inquiries){ this.image = product.getImage(); this.title = product.getTitle(); this.subtitle = product.getSubtitle(); diff --git a/src/main/java/MARKETFUBY/Product/service/ProductService.java b/src/main/java/MARKETFUBY/Product/service/ProductService.java index d47621d..120ed1f 100644 --- a/src/main/java/MARKETFUBY/Product/service/ProductService.java +++ b/src/main/java/MARKETFUBY/Product/service/ProductService.java @@ -218,7 +218,7 @@ public SearchDto getSearchList(String sword, Integer sort, Long filters){ public ProductDetailDto getProductDetailDto(Product product, Long memberId){ Member member = memberRepository.findByMemberId(memberId); - boolean isLiked = likeRepository.existsByMemberAndProduct(member, product); + Boolean isLiked = likeRepository.existsByMemberAndProduct(member, product); List reviewImages = findReviewImagesByProduct(product); List reviews = findReviewsByProduct(product, memberId); Integer reviewCount = reviews.size();