From 5fd28c60c83a623bd0c1ac14a11de463c61c2c27 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Wed, 25 Jun 2025 09:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E7=BC=96=E8=BE=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canteen/core/common/annotation/PreventRepeatSubmit.java | 2 +- .../canteen/core/cook/service/impl/CookRecipeServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/common/annotation/PreventRepeatSubmit.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/common/annotation/PreventRepeatSubmit.java index 7173298..5f87a11 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/common/annotation/PreventRepeatSubmit.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/common/annotation/PreventRepeatSubmit.java @@ -15,7 +15,7 @@ public @interface PreventRepeatSubmit /** * 间隔时间(s),小于此时间视为重复提交 */ - public int interval() default 5; + public int interval() default 7; /** * 提示消息 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 8e3d1b1..50833f7 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 @@ -299,7 +299,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService { if (RecipeTypeEnum.DAILY.key().equals(cookRecipeDTO.getRecipeType()) && Objects.nonNull(recipeDateList.get(0))) { //每日循环 List recipeDetailList = recipeDateList.get(0).getDetailList(); LocalDate now = LocalDate.now(); - for (int i = 0; i < GlobalConstants.WEEK_DAYS; ++i) { + for (int i = 0; i < 3; ++i) { //每日循环菜谱,只生成3天的量,后面的依赖每天的定时任务 CookRecipeDateDTO cookRecipeDateDTO = new CookRecipeDateDTO(); cookRecipeDateDTO.setDetailList(recipeDetailList); cookRecipeDateDTO.setApplyDate(now.plusDays(i));