diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceImpl.java index 2f9ca13..de3e41e 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceImpl.java @@ -126,8 +126,8 @@ public class CookRecipeServiceImpl implements ICookRecipeService { LocalDate now = LocalDate.now(); for (int i = 0; i < 7; ++i) { cookRecipeDateDTO.setApplyDate(now.plusDays(i)); + recipeDateListNew.add(cookRecipeDateDTO); } - recipeDateListNew.add(cookRecipeDateDTO); } else if (3 == cookRecipeDTO.getRecipeType()) { //每周循环 LocalDate now = LocalDate.now(); HashMap dateHashMap = new HashMap<>(); @@ -150,7 +150,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService { recipeDateListNew.add(cookRecipeDateDTO); } } - return recipeDateList; + return recipeDateListNew; } private void insertDetailAndDishes(CookRecipeDTO cookRecipeDTO, CookRecipeDateDTO recipeDateDTO, CookRecipeDetailDTO detailDTO) {