From 81546a3b56f6291e4498854c0b7cefe6ddee109b Mon Sep 17 00:00:00 2001 From: ryoeiken <754264374@qq.com> Date: Thu, 31 Dec 2020 10:04:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=8F=9C=E5=93=81=E6=B8=85?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fantang/controller/ClientPatientController.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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)); } }