根据id查询套餐、菜品起售停售(TODO)
This commit is contained in:
@@ -5,6 +5,7 @@ import com.sky.dto.SetmealPageQueryDTO;
|
||||
import com.sky.result.PageResult;
|
||||
import com.sky.result.Result;
|
||||
import com.sky.service.SetmealService;
|
||||
import com.sky.vo.SetmealVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -60,4 +61,17 @@ public class SetmealController {
|
||||
setmealService.deleteBatch(ids);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询套餐
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
@ApiOperation("根据id查询套餐")
|
||||
public Result<SetmealVO> getById(@PathVariable Long id){
|
||||
log.info("根据id查询套餐");
|
||||
SetmealVO setmealVO = setmealService.getByIdWithSetmealDishes(id);
|
||||
return Result.success(setmealVO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user