package com.jeeplus.hotelorder.dish.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeplus.hotelorder.dish.domain.HotelDishAddition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HotelDishAdditionMapper extends BaseMapper<HotelDishAddition> {

    /**
     * 根据菜品ID查询加料
     */
    List<HotelDishAddition> selectByDishId(@Param("dishId") String dishId);

    /**
     * 根据菜品ID删除加料(软删除)
     */
    int deleteByDishId(@Param("dishId") String dishId);
}
