Skip to content

Commit

Permalink
Merge pull request #32 from MYONGSIK/hotfix/weekGetDinner
Browse files Browse the repository at this point in the history
#31 dinner 4๋ฒˆ์งธ ๋ฉ”๋‰ด ๋กœ์ง ์ˆ˜์ •
  • Loading branch information
Qbeom0925 authored Dec 12, 2022
2 parents f0c625b + f8987d0 commit 402924b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public class WeekFoodResponse {

public static List<WeekFoodResponse> toEntity(List<Lunch> lunchesA, List<Lunch> lunchesB, List<Dinner> dinners) {
List<WeekFoodResponse> weekFoodResponses = new ArrayList<>();



for(int i=0; i<5; i++) {//์ผ์ž๋ณ„
weekFoodResponses.add(
WeekFoodResponse.builder()
Expand All @@ -47,7 +44,7 @@ public static List<WeekFoodResponse> toEntity(List<Lunch> lunchesA, List<Lunch>
.status(lunchesA.get(i).getStatus())
.lunchA(Arrays.asList(lunchesA.get(i).getLunch1(),lunchesA.get(i).getLunch2(),lunchesA.get(i).getLunch3(),lunchesA.get(i).getLunch4(),lunchesA.get(i).getLunch5(),lunchesA.get(i).getLunch6()))
.lunchB(Arrays.asList(lunchesB.get(i).getLunch1(),lunchesB.get(i).getLunch2(),lunchesB.get(i).getLunch3(),lunchesB.get(i).getLunch4(),lunchesB.get(i).getLunch5(),lunchesB.get(i).getLunch6()))
.dinner(Arrays.asList(dinners.get(i).getDinner1(),dinners.get(i).getDinner2(),dinners.get(i).getDinner3(),lunchesB.get(i).getLunch4(),dinners.get(i).getDinner5(),dinners.get(i).getDinner6()))
.dinner(Arrays.asList(dinners.get(i).getDinner1(),dinners.get(i).getDinner2(),dinners.get(i).getDinner3(),dinners.get(i).getDinner4(),dinners.get(i).getDinner5(),dinners.get(i).getDinner6()))
.build()
);
}
Expand Down

0 comments on commit 402924b

Please sign in to comment.