package com.ruoyi.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.FoodSpecRelation;

/**
 * 商品-规格关联 Mapper 接口
 *
 * @author ruoyi
 * @date 2026-07-15
 */
public interface FoodSpecRelationMapper extends BaseMapper<FoodSpecRelation>
{
    /**
     * 查询商品-规格关联
     *
     * @param id 主键
     * @return 商品-规格关联
     */
    public FoodSpecRelation selectFoodSpecRelationById(Long id);

    /**
     * 查询商品-规格关联列表
     *
     * @param foodSpecRelation 商品-规格关联
     * @return 商品-规格关联集合
     */
    public List<FoodSpecRelation> selectFoodSpecRelationList(FoodSpecRelation foodSpecRelation);

    /**
     * 新增商品-规格关联
     *
     * @param foodSpecRelation 商品-规格关联
     * @return 结果
     */
    public int insertFoodSpecRelation(FoodSpecRelation foodSpecRelation);

    /**
     * 修改商品-规格关联
     *
     * @param foodSpecRelation 商品-规格关联
     * @return 结果
     */
    public int updateFoodSpecRelation(FoodSpecRelation foodSpecRelation);

    /**
     * 删除商品-规格关联
     *
     * @param id 主键
     * @return 结果
     */
    public int deleteFoodSpecRelationById(Long id);

    /**
     * 批量删除商品-规格关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFoodSpecRelationByIds(Long[] ids);
}
