新增菜谱
This commit is contained in:
parent
03ef97918b
commit
dde1a45475
|
|
@ -126,8 +126,8 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
||||||
LocalDate now = LocalDate.now();
|
LocalDate now = LocalDate.now();
|
||||||
for (int i = 0; i < 7; ++i) {
|
for (int i = 0; i < 7; ++i) {
|
||||||
cookRecipeDateDTO.setApplyDate(now.plusDays(i));
|
cookRecipeDateDTO.setApplyDate(now.plusDays(i));
|
||||||
|
recipeDateListNew.add(cookRecipeDateDTO);
|
||||||
}
|
}
|
||||||
recipeDateListNew.add(cookRecipeDateDTO);
|
|
||||||
} else if (3 == cookRecipeDTO.getRecipeType()) { //每周循环
|
} else if (3 == cookRecipeDTO.getRecipeType()) { //每周循环
|
||||||
LocalDate now = LocalDate.now();
|
LocalDate now = LocalDate.now();
|
||||||
HashMap<Integer, LocalDate> dateHashMap = new HashMap<>();
|
HashMap<Integer, LocalDate> dateHashMap = new HashMap<>();
|
||||||
|
|
@ -150,7 +150,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
||||||
recipeDateListNew.add(cookRecipeDateDTO);
|
recipeDateListNew.add(cookRecipeDateDTO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return recipeDateList;
|
return recipeDateListNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void insertDetailAndDishes(CookRecipeDTO cookRecipeDTO, CookRecipeDateDTO recipeDateDTO, CookRecipeDetailDTO detailDTO) {
|
private void insertDetailAndDishes(CookRecipeDTO cookRecipeDTO, CookRecipeDateDTO recipeDateDTO, CookRecipeDetailDTO detailDTO) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue