获取菜品清单
This commit is contained in:
parent
58ea5fb983
commit
81546a3b56
@ -153,13 +153,12 @@ public class ClientPatientController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取菜品价格
|
* 获取菜品清单
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getFoodPrice/{foodId}")
|
@GetMapping("/getFoodPrice")
|
||||||
public AjaxResult getFoodPrice(@PathVariable("foodId") Long foodId) {
|
public AjaxResult getFoodPrice() {
|
||||||
QueryWrapper<FtFoodDao> wrapper = new QueryWrapper<>();
|
QueryWrapper<FtFoodDao> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("type", 1);
|
wrapper.eq("type", 1);
|
||||||
wrapper.eq("food_id", foodId);
|
return AjaxResult.success(iftFoodDaoService.list(wrapper));
|
||||||
return AjaxResult.success(iftFoodDaoService.getOne(wrapper).getPrice());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user