Skip to content

Commit

Permalink
Merge pull request #41 from MARKETFUBY/revert-40-feat/product-detail
Browse files Browse the repository at this point in the history
Revert "[차소연] 상품 상세 조회 찜 여부 오류 수정"
  • Loading branch information
Soyeon-Cha authored Nov 26, 2023
2 parents 2407f1f + 61de3e1 commit 7cc0d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/MARKETFUBY/Product/dto/ProductDetailDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> reviewImages;
Expand All @@ -33,7 +33,7 @@ public class ProductDetailDto {
private List<ProductInquiryDto> inquiries;

@Builder
public ProductDetailDto(Product product, boolean isLiked, List<String> reviewImages, Integer reviewCount, List<ProductReviewDto> reviews, List<ProductInquiryDto> inquiries){
public ProductDetailDto(Product product, Boolean isLiked, List<String> reviewImages, Integer reviewCount, List<ProductReviewDto> reviews, List<ProductInquiryDto> inquiries){
this.image = product.getImage();
this.title = product.getTitle();
this.subtitle = product.getSubtitle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> reviewImages = findReviewImagesByProduct(product);
List<ProductReviewDto> reviews = findReviewsByProduct(product, memberId);
Integer reviewCount = reviews.size();
Expand Down

0 comments on commit 7cc0d7b

Please sign in to comment.