新增菜谱
This commit is contained in:
parent
1bb5aadfb8
commit
5ba34e5b7f
|
|
@ -98,6 +98,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
|||
recipeDateList = cookRecipeDTO.getRecipeDateList();
|
||||
} else if (2 == cookRecipeDTO.getRecipeType()) { //每日循环
|
||||
CookRecipeDateDTO cookRecipeDateDTO = new CookRecipeDateDTO();
|
||||
cookRecipeDateDTO.setDetailList(cookRecipeDTO.getRecipeDateList().get(0).getDetailList());
|
||||
LocalDate now = LocalDate.now();
|
||||
for (int i = 0; i < 7; ++i) {
|
||||
cookRecipeDateDTO.setApplyDate(now.plusDays(i));
|
||||
|
|
|
|||
Loading…
Reference in New Issue