Package | Description |
---|---|
com.itheima.controller | |
com.itheima.service | |
com.itheima.service.impl |
Modifier and Type | Method and Description |
---|---|
Result<DishDto> |
DishController.getDishAndFlavorsById(Long id)
通过id回显菜品和口味
|
Result<List<DishDto>> |
DishController.getDishInSetMealPage(Dish dish)
在套餐管理页面回显菜品信息(只回显在售的)
|
Modifier and Type | Method and Description |
---|---|
Result<String> |
DishController.addDishAndFlavors(DishDto dishDto)
添加菜品和口味
POST方式,请求体添加
|
Result<String> |
DishController.updateDishAndFlavors(DishDto dishDto)
更新菜品和口味
|
Modifier and Type | Method and Description |
---|---|
DishDto |
DishService.getDishAndFlavors(Long id) |
Modifier and Type | Method and Description |
---|---|
com.baomidou.mybatisplus.extension.plugins.pagination.Page<DishDto> |
DishService.getAll(com.baomidou.mybatisplus.extension.plugins.pagination.Page<Dish> pageInfo,
Integer page,
Integer pageSize,
String name) |
Modifier and Type | Method and Description |
---|---|
Boolean |
DishService.saveWithFlavor(DishDto dishDto) |
Boolean |
DishService.updateDishAndFlavors(DishDto dishDto) |
Modifier and Type | Method and Description |
---|---|
DishDto |
DishServiceImpl.getDishAndFlavors(Long id)
通过id回显菜品信息和口味(操纵两张表)
|
Modifier and Type | Method and Description |
---|---|
com.baomidou.mybatisplus.extension.plugins.pagination.Page<DishDto> |
DishServiceImpl.getAll(com.baomidou.mybatisplus.extension.plugins.pagination.Page<Dish> pageInfo,
Integer page,
Integer pageSize,
String name)
分页查询菜品信息和菜品分类(操纵两张表)
|
Modifier and Type | Method and Description |
---|---|
Boolean |
DishServiceImpl.saveWithFlavor(DishDto dishDto)
新增菜品同时保存口味(操纵两张表)
|
Boolean |
DishServiceImpl.updateDishAndFlavors(DishDto dishDto)
更新菜品和口味(操纵两张表)
每次更新先删除所有口味,重新插入
|
Copyright © 2022. All rights reserved.