From bcb79d64db48e45d02a29e7b83eb082ca38a5cf7 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 7 Jul 2025 17:17:28 +0800 Subject: [PATCH] =?UTF-8?q?i=E5=9B=BD=E7=BD=91=EF=BC=9A=E4=B8=80=E5=91=A8?= =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/zhhq/service/impl/ZhhqCookRecipeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/service/impl/ZhhqCookRecipeServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/service/impl/ZhhqCookRecipeServiceImpl.java index d1468dd..fb27def 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/service/impl/ZhhqCookRecipeServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/service/impl/ZhhqCookRecipeServiceImpl.java @@ -42,7 +42,7 @@ public class ZhhqCookRecipeServiceImpl implements IZhhqCookRecipeService { List 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 recipeIds = zhhqCookRecipeMapper.selectWeekRecipeList(); List recipeDetails = zhhqCookRecipeMapper.selectWeekRecipeDetail(weekDates, recipeIds);