package com.jeeplus.hotelorder.dish.mapper;

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

import java.util.List;

@Mapper
public interface HotelDishSpecMapper extends BaseMapper<HotelDishSpec> {

    /**
     * 根据菜品ID查询规格组
     */
    List<HotelDishSpec> selectByDishId(@Param("dishId") String dishId);

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