2024-01-07 00:40:22 +08:00
|
|
|
package com.sky.mapper;
|
|
|
|
import com.sky.entity.DishFlavor;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@Mapper
|
|
|
|
public interface DishFlavorMapper {
|
|
|
|
/**
|
|
|
|
* 香口味表中插入n条数据
|
|
|
|
* @param flavors List<DishFlavor>
|
|
|
|
*/
|
|
|
|
void insertBatch(List<DishFlavor> flavors);
|
2024-01-07 22:41:30 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 删除菜品关联的口味数据
|
|
|
|
* @param id Long
|
|
|
|
*/
|
|
|
|
void deleteByDishId(Long id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 删除菜品关联的口味数据
|
|
|
|
* @param dishIds List<Long>
|
|
|
|
*/
|
|
|
|
void deleteByDishIds(List<Long> dishIds);
|
2024-01-07 00:40:22 +08:00
|
|
|
}
|