Skip to content

Commit

Permalink
fix: Price를 dollar랑 canada Dollar로 구분
Browse files Browse the repository at this point in the history
  • Loading branch information
summit45 committed Nov 17, 2023
1 parent d8121ea commit ccf83b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/kusitms/jipbap/food/dto/FoodDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ public class FoodDto {
private String description;
private String image;


}
2 changes: 1 addition & 1 deletion src/main/java/com/kusitms/jipbap/store/StoreService.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public StoreFoodResponseDto searchStoresAndFoods(String email, Pageable pageable
.collect(Collectors.toList());

List<FoodDto> foodList = foodRepository.searchByNameOrderBySort(user, pageable, keyword, standard, order)
.stream().map(f -> new FoodDto(f.getId(), f.getStore().getId(), f.getCategory().getId(), f.getName(), f.getPrice(), f.getDescription(), f.getImage()))
.stream().map(f -> new FoodDto(f.getId(), f.getStore().getId(), f.getCategory().getId(), f.getName(), f.getDollarPrice(), f.getCanadaPrice(), f.getDescription(), f.getImage()))
.collect(Collectors.toList());


Expand Down

0 comments on commit ccf83b2

Please sign in to comment.