31 lines
664 B
Java
31 lines
664 B
Java
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;
|
||
|
||
@Mapper
|
||
public interface DishFlavorMapper {
|
||
/**
|
||
* 菜品口味的批量插入
|
||
* @param flavors
|
||
*/
|
||
void insertBath(List<DishFlavor> flavors);
|
||
|
||
/**
|
||
* 菜品口味的批量删除
|
||
* @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);
|
||
}
|