h5周菜谱

This commit is contained in:
sxu 2025-06-06 17:23:16 +08:00
parent e6c0c78513
commit e277c176e8
2 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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)) {