h5周菜谱
This commit is contained in:
parent
e6c0c78513
commit
e277c176e8
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue