Skip to content

Commit

Permalink
fix: 음식 상세 dto 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
eckrin committed Nov 18, 2023
1 parent 639a04b commit e1aeb82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/generated/com/kusitms/jipbap/food/QFood.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public class QFood extends EntityPathBase<Food> {

public final StringPath image = createString("image");

public final StringPath informationDescription = createString("informationDescription");

public final StringPath ingredient = createString("ingredient");

public final StringPath name = createString("name");

public final NumberPath<Long> recommendCount = createNumber("recommendCount", Long.class);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/kusitms/jipbap/food/FoodService.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public FoodDetailResponse getFoodDetail(Long foodId) {
List<FoodOptionResponse> foodOptionResponseList = foodOptionRepository.findAllByFood(food).stream()
.map(foodOption -> new FoodOptionResponse(foodOption.getId(), foodOption.getName(), foodOption.getDollarPrice(), foodOption.getCanadaPrice()))
.collect(Collectors.toList());
return new FoodDetailResponse(food.getId(), food.getStore().getId(), food.getCategory().getId(), food.getName(), food.getDollarPrice(), food.getCanadaPrice(), food.getDescription(), food.getImage(), foodOptionResponseList);
return new FoodDetailResponse(food.getId(), food.getStore().getId(), food.getCategory().getId(), food.getName(), food.getDollarPrice(), food.getCanadaPrice(), food.getImage(), food.getDescription(), food.getFoodPackage(), food.getInformationDescription(), food.getIngredient(), foodOptionResponseList);
}

public List<FoodOptionResponse> getFoodDetailByOption(Long foodId) {
Expand Down

0 comments on commit e1aeb82

Please sign in to comment.