Skip to content

Commit

Permalink
fix : 상품 검색 시 dto 필드 변경, 생성자 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
bongsh0112 committed Dec 6, 2023
1 parent da3b29e commit 4517ddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ProductRetrieveDTO {
private String characteristic;
private Long price;
private String productOption;
private String crawlUrl;
private String imageUrl;
private String siteUrl;

public static ProductRetrieveDTO from(Product product) {
Expand All @@ -28,7 +28,7 @@ public static ProductRetrieveDTO from(Product product) {
.characteristic(product.getCharacteristic())
.price(product.getPrice())
.productOption(product.getProductOption())
.crawlUrl(product.getCrawlUrl())
.imageUrl(product.getImageUrl())
.siteUrl(product.getCrawlUrl())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public Slice<ProductRetrieveDTO> searchByKeyword(ProductCondition productConditi
product.characteristic,
product.price,
product.productOption,
product.imageUrl,
product.crawlUrl))
.from(product)
.where(product.name.contains(productCondition.getKeyword()))
Expand All @@ -100,7 +101,8 @@ public Slice<ProductRetrieveDTO> searchBySmallCategory(
product.characteristic,
product.price,
product.productOption,
product.imageUrl))
product.imageUrl,
product.crawlUrl))
.from(product)
.where(
product.favorQuestionCategoryId.in(
Expand Down

0 comments on commit 4517ddb

Please sign in to comment.