苍穹外卖--菜品管理-修改功能实现
This commit is contained in:
@@ -2,6 +2,7 @@ package com.sky.mapper;
|
||||
|
||||
import com.sky.entity.DishFlavor;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -18,4 +19,12 @@ public interface DishFlavorMapper {
|
||||
* @param ids
|
||||
*/
|
||||
void deleteBath(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 根据菜品id,查询对应口味数据
|
||||
* @param dishId
|
||||
* @return
|
||||
*/
|
||||
@Select("select * from dish_flavor where dish_id = #{dishId}")
|
||||
List<DishFlavor> getByDishId(Long dishId);
|
||||
}
|
||||
|
||||
@@ -50,4 +50,11 @@ public interface DishMapper {
|
||||
* @param ids
|
||||
*/
|
||||
void deleteBath(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 更新菜品表
|
||||
* @param dish
|
||||
*/
|
||||
@AutoFill(OperationType.UPDATE)
|
||||
void update(Dish dish);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user