-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 식품 필터링 정보 메타데이터 조회 #121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
바쁜데 추가하느라 고생했스요 👍🏻👍🏻
backend/src/main/java/zipgo/petfood/application/PetFoodQueryService.java
Show resolved
Hide resolved
backend/src/main/java/zipgo/petfood/presentation/PetFoodController.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/zipgo/petfood/domain/repository/PetFoodRepository.java
Outdated
Show resolved
Hide resolved
List<String> primaryIngredients = petFoodRepository.findAllPrimaryIngredients().stream() | ||
.map(primaryIngredient -> asList(primaryIngredient.split(","))) | ||
.flatMap(Collection::stream) | ||
.distinct() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@query에서 distinct하고 있는데 여기서도 해야되나용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 이게 query에서는 로우 레벨에서 한 번 걸러주고, 애플리케이션에서는 ,로 구분 후 List에서 중복 제거합니다!
backend/src/main/java/zipgo/petfood/domain/repository/PetFoodRepository.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/zipgo/petfood/domain/repository/PetFoodRepository.java
Show resolved
Hide resolved
backend/src/main/java/zipgo/petfood/application/PetFoodQueryService.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㄱㄱ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
흑.. 꼭 구현합시다.
📄 Summary
🙋🏻 More