26 lines
631 B
Java
26 lines
631 B
Java
package com.sky.mapper;
|
|
|
|
import com.sky.entity.Dish;
|
|
import com.sky.entity.SetmealDish;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface SetmealDishMapper {
|
|
/**
|
|
* 根据菜品id查询套餐id
|
|
* @param ids
|
|
* @return
|
|
*/
|
|
List<Long> getSetmealIdsByDishIds(List<Long> ids);
|
|
|
|
void insertBatch(List<SetmealDish> setmealDishes);
|
|
|
|
void deleteBySetmealIds(List<Long> setmealIds);
|
|
|
|
@Select("select * from setmeal_dish where setmeal_id = #{setmealId}")
|
|
List<SetmealDish> selectBySetmealId(Long setmealId);
|
|
}
|