Files
sky-take-out1103/sky-server/src/main/java/com/sky/mapper/DishFlavorMapper.java

31 lines
664 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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