From dde1a454758b71fbc67c74a85e36d009d17518aa Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 27 May 2025 23:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8F=9C=E8=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canteen/core/cook/service/impl/CookRecipeServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {