苍穹外卖--菜品管理-修改功能实现

This commit is contained in:
2025-11-11 15:24:13 +08:00
parent 85cd67f345
commit cbb596cf02
7 changed files with 106 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -50,4 +50,11 @@ public interface DishMapper {
* @param ids
*/
void deleteBath(List<Long> ids);
/**
* 更新菜品表
* @param dish
*/
@AutoFill(OperationType.UPDATE)
void update(Dish dish);
}