菜谱编辑优化
This commit is contained in:
parent
4169cf7d3a
commit
5fd28c60c8
|
|
@ -15,7 +15,7 @@ public @interface PreventRepeatSubmit
|
|||
/**
|
||||
* 间隔时间(s),小于此时间视为重复提交
|
||||
*/
|
||||
public int interval() default 5;
|
||||
public int interval() default 7;
|
||||
|
||||
/**
|
||||
* 提示消息
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
|||
if (RecipeTypeEnum.DAILY.key().equals(cookRecipeDTO.getRecipeType()) && Objects.nonNull(recipeDateList.get(0))) { //每日循环
|
||||
List<CookRecipeDetailDTO> 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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue