i国网:一周菜谱接入

This commit is contained in:
sxu 2025-07-07 17:17:28 +08:00
parent 75e41f9018
commit bcb79d64db
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class ZhhqCookRecipeServiceImpl implements IZhhqCookRecipeService {
List<LocalDate> weekDates = DateUtil.getWeekDates(dto.getMenuDate());
weekRecipeVO.setRecipeYear(dto.getMenuDate().getYear());
weekRecipeVO.setStartDate(weekDates.get(0));
weekRecipeVO.setEndDate(weekDates.get(weekDates.lastIndexOf(weekDates)));
weekRecipeVO.setEndDate(weekDates.get(weekDates.size() - 1));
//查询一周菜谱详情
List<Long> recipeIds = zhhqCookRecipeMapper.selectWeekRecipeList();
List<WeekRecipeDetailVO> recipeDetails = zhhqCookRecipeMapper.selectWeekRecipeDetail(weekDates, recipeIds);