新增菜谱

This commit is contained in:
sxu 2025-05-27 23:27:32 +08:00
parent 03ef97918b
commit dde1a45475
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
} else if (3 == cookRecipeDTO.getRecipeType()) { //每周循环
LocalDate now = LocalDate.now();
HashMap<Integer, LocalDate> 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) {