Skip to content

Commit

Permalink
edit : HCDIS 추천 전략 로직 수정 #138
Browse files Browse the repository at this point in the history
  • Loading branch information
bongsh0112 committed Feb 5, 2024
1 parent af72150 commit 2301314
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ public List<Product> recommendation(Long userId, String categoryName) {
String[] splitAnswer = recommendationDTO.get(1).getAnswer().split(", ");
if (splitAnswer.length > 1) {
return productList.stream()
.filter(product -> product.getCharacteristic().contains(splitAnswer[0]))
.filter(product -> product.getCharacteristic().contains(splitAnswer[1]))
.filter(
product ->
product.getCharacteristic().contains(splitAnswer[0])
|| product.getCharacteristic().contains(splitAnswer[1]))
.toList();
} else {
return productList.stream()
Expand Down

0 comments on commit 2301314

Please sign in to comment.