新增菜谱
This commit is contained in:
parent
2a74f41713
commit
c319018768
|
|
@ -72,12 +72,6 @@ public class CookRecipeController extends BaseController {
|
|||
//@RequiresPermissions("cook:recipe:query")
|
||||
@GetMapping(value = "/{recipeId}")
|
||||
public AjaxResult getInfo(@PathVariable("recipeId") Long recipeId) {
|
||||
// 构造菜谱之菜品详情VO
|
||||
|
||||
// 狗仔菜谱之执行计划VO
|
||||
|
||||
// 狗仔菜谱VO
|
||||
|
||||
return success(cookRecipeService.selectCookRecipeByRecipeId(recipeId));
|
||||
}
|
||||
|
||||
|
|
@ -107,11 +101,6 @@ public class CookRecipeController extends BaseController {
|
|||
@PostMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody CookRecipe cookRecipe) {
|
||||
try {
|
||||
//TODO 删除菜谱之菜品详情
|
||||
//TODO 删除菜谱之执行计划
|
||||
|
||||
//TODO 新增菜谱之执行计划
|
||||
//TODO 新增菜谱之菜品详情
|
||||
return toAjax(cookRecipeService.updateCookRecipe(cookRecipe));
|
||||
} catch (Exception e) {
|
||||
return error(e.getMessage());
|
||||
|
|
@ -127,8 +116,6 @@ public class CookRecipeController extends BaseController {
|
|||
@SysLog(title = "菜品计划信息", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除菜品计划信息")
|
||||
@PostMapping("/del/{recipeIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] recipeIds) {
|
||||
//TODO 删除菜谱之菜品详情
|
||||
//TODO 删除菜谱之执行计划
|
||||
return toAjax(cookRecipeService.deleteCookRecipeByRecipeIds(recipeIds));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
|||
*/
|
||||
@Override
|
||||
public CookRecipe selectCookRecipeByRecipeId(Long recipeId) {
|
||||
//TODO 构造菜谱之菜品详情VO
|
||||
|
||||
//TODO 狗仔菜谱之执行计划VO
|
||||
|
||||
//TODO 狗仔菜谱VO
|
||||
|
||||
return cookRecipeMapper.selectCookRecipeByRecipeId(recipeId);
|
||||
}
|
||||
|
||||
|
|
@ -104,6 +110,12 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
|||
public int updateCookRecipe(CookRecipe cookRecipe) {
|
||||
cookRecipe.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
//TODO 删除菜谱之菜品详情
|
||||
//TODO 删除菜谱之执行计划
|
||||
|
||||
//TODO 新增菜谱之执行计划
|
||||
//TODO 新增菜谱之菜品详情
|
||||
|
||||
return cookRecipeMapper.updateCookRecipe(cookRecipe);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(e.getMessage());
|
||||
|
|
@ -118,6 +130,10 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
|||
*/
|
||||
@Override
|
||||
public int deleteCookRecipeByRecipeIds(Long[] recipeIds) {
|
||||
//TODO 删除菜谱之菜品详情
|
||||
|
||||
//TODO 删除菜谱之执行计划
|
||||
|
||||
return cookRecipeMapper.deleteCookRecipeByRecipeIds(recipeIds);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue