Commit 0c051ab4 by 周海峰

菜谱线路改为查询

parent d4dde8fe
...@@ -185,4 +185,12 @@ public class PlatformRecipesController { ...@@ -185,4 +185,12 @@ public class PlatformRecipesController {
Pagination pagination = new Pagination(page.getList(),new Long(page.getTotal()),pageSize,pageIndex); Pagination pagination = new Pagination(page.getList(),new Long(page.getTotal()),pageSize,pageIndex);
return ResultJson.ok(pagination); return ResultJson.ok(pagination);
} }
/**
* 查询所有线路
*/
@GetMapping("/lineList")
public ResultJson lineList(){
return ResultJson.ok(platformRecipesService.selectLine());
}
} }
...@@ -99,4 +99,9 @@ public interface PlatformRecipesMapper { ...@@ -99,4 +99,9 @@ public interface PlatformRecipesMapper {
int updateStatusByPrimaryKey(PlatformRecipes record); int updateStatusByPrimaryKey(PlatformRecipes record);
PlatformRecipes loadByDateAndLine(Map params); PlatformRecipes loadByDateAndLine(Map params);
/**
* 查询所有线路
*/
List<PlatformRecipes> selectLine();
} }
\ No newline at end of file
...@@ -40,4 +40,9 @@ public interface PlatformRecipesService { ...@@ -40,4 +40,9 @@ public interface PlatformRecipesService {
PlatformRecipes loadByDateAndLine(Map params); PlatformRecipes loadByDateAndLine(Map params);
void updateRecipesStatus(String status, String ids); void updateRecipesStatus(String status, String ids);
/**
* 查询所有线路
*/
List<PlatformRecipes> selectLine();
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论