Package | Description |
---|---|
com.itheima.controller | |
com.itheima.service | |
com.itheima.service.impl |
Modifier and Type | Method and Description |
---|---|
Result<SetmealDto> |
SetmealController.getById(Long id)
通过id回显套餐信息(多表查询)
|
Modifier and Type | Method and Description |
---|---|
Result<String> |
SetmealController.add(SetmealDto setmealDto)
添加套餐和已成为套餐的信息到setmeal_dish表
|
Result<String> |
SetmealController.update(SetmealDto setmealDto)
更新setmeal表和setmeal_dish表的数据
setmeal表的数据(先删在插)
|
Modifier and Type | Method and Description |
---|---|
SetmealDto |
SetmealService.getSetMealAndDishes(Long id) |
Modifier and Type | Method and Description |
---|---|
com.baomidou.mybatisplus.extension.plugins.pagination.Page<SetmealDto> |
SetmealService.getAll(com.baomidou.mybatisplus.extension.plugins.pagination.Page<Setmeal> pageInfo,
Integer page,
Integer pageSize,
String name) |
Modifier and Type | Method and Description |
---|---|
Boolean |
SetmealService.saveMealWithDish(SetmealDto setmealDto) |
Boolean |
SetmealService.updateSetMealAndDishes(SetmealDto setmealDto) |
Modifier and Type | Method and Description |
---|---|
SetmealDto |
SetmealServiceImpl.getSetMealAndDishes(Long id)
回显setmeal表中套餐信息和已保存在setmeal_dish表的信息
|
Modifier and Type | Method and Description |
---|---|
com.baomidou.mybatisplus.extension.plugins.pagination.Page<SetmealDto> |
SetmealServiceImpl.getAll(com.baomidou.mybatisplus.extension.plugins.pagination.Page<Setmeal> pageInfo,
Integer page,
Integer pageSize,
String name)
因为setmealDto是复制类,没法使用直接使用setmael的接口
|
Modifier and Type | Method and Description |
---|---|
Boolean |
SetmealServiceImpl.saveMealWithDish(SetmealDto setmealDto)
提交表单时将设置成套餐的产品保存到setmeal_dish中
|
Boolean |
SetmealServiceImpl.updateSetMealAndDishes(SetmealDto setmealDto)
与更新菜品口味操作一致
|
Copyright © 2022. All rights reserved.