diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientPatientController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientPatientController.java index a2a33dd9f..547529fff 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientPatientController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/ClientPatientController.java @@ -153,13 +153,12 @@ public class ClientPatientController extends BaseController { } /** - * 获取菜品价格 + * 获取菜品清单 */ - @GetMapping("/getFoodPrice/{foodId}") - public AjaxResult getFoodPrice(@PathVariable("foodId") Long foodId) { + @GetMapping("/getFoodPrice") + public AjaxResult getFoodPrice() { QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq("type", 1); - wrapper.eq("food_id", foodId); - return AjaxResult.success(iftFoodDaoService.getOne(wrapper).getPrice()); + return AjaxResult.success(iftFoodDaoService.list(wrapper)); } }