diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/controller/CookRecipeH5Controller.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/controller/CookRecipeH5Controller.java index 1cab33c..45ae185 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/controller/CookRecipeH5Controller.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/controller/CookRecipeH5Controller.java @@ -71,11 +71,10 @@ public class CookRecipeH5Controller extends BaseController { } @ApiOperation("获取一周菜谱详情") - @GetMapping({"/week/recipe/detail"}) - public TableDataInfo getWeekRecipeDetailList(@Valid AppletWeekRecipeDTO content) { + @PostMapping({"/week/recipe/detail"}) + public TableDataInfo getWeekRecipeDetailList(@RequestBody @Valid AppletWeekRecipeDTO content) { try { startPage(); - content.setApplyDate(LocalDate.parse(content.getDate())); return getDataTable(this.cookRecipeH5Service.getWeekRecipeDetailList(content)); } catch (Exception e) { log.error(e.toString(), e); diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceH5Impl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceH5Impl.java index 8029827..d4434ee 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceH5Impl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/cook/service/impl/CookRecipeServiceH5Impl.java @@ -133,7 +133,7 @@ public class CookRecipeServiceH5Impl implements ICookRecipeH5Service { return Lists.newArrayList(); } } else { - LocalDate applyDate = LocalDate.parse(content.getDate()); + LocalDate applyDate = content.getApplyDate(); // LocalDate.parse(content.getDate()); LocalDate now = LocalDate.now(); if (applyDate.isBefore(now)) {