Skip to content

Commit

Permalink
[FEAT] query with gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
wakkpu committed Jan 24, 2024
1 parent 24d4f7d commit 62e87b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public List<Product> searchProducts(String query) {

@Override
public List<Product> searchAfterGpt(List<Long> categoryIds, List<Long> brandIds, Gender gender) {
return jpaQueryFactory.selectFrom(product)
return jpaQueryFactory.selectDistinct(product)
.from(product)
.leftJoin(product.brand, brand).fetchJoin()
.leftJoin(product.category, category).fetchJoin()
.leftJoin(product.reviewAggregate, reviewAggregate).fetchJoin()
Expand Down

0 comments on commit 62e87b5

Please sign in to comment.