package com.bonus.canteen.core.cook.service;

import java.util.List;
import com.bonus.canteen.core.cook.domain.CookDishesMaterial;

/**
 * 菜品原料关联Service接口
 * 
 * @author xsheng
 * @date 2025-05-25
 */
public interface ICookDishesMaterialService {
    /**
     * 查询菜品原料关联
     * 
     * @param id 菜品原料关联主键
     * @return 菜品原料关联
     */
    public CookDishesMaterial selectCookDishesMaterialById(Long id);

    /**
     * 查询菜品原料关联列表
     * 
     * @param cookDishesMaterial 菜品原料关联
     * @return 菜品原料关联集合
     */
    public List<CookDishesMaterial> selectCookDishesMaterialList(CookDishesMaterial cookDishesMaterial);

    /**
     * 新增菜品原料关联
     * 
     * @param cookDishesMaterial 菜品原料关联
     * @return 结果
     */
    public int insertCookDishesMaterial(CookDishesMaterial cookDishesMaterial);

    /**
     * 修改菜品原料关联
     * 
     * @param cookDishesMaterial 菜品原料关联
     * @return 结果
     */
    public int updateCookDishesMaterial(CookDishesMaterial cookDishesMaterial);

    /**
     * 批量删除菜品原料关联
     * 
     * @param ids 需要删除的菜品原料关联主键集合
     * @return 结果
     */
    public int deleteCookDishesMaterialByIds(Long[] ids);

    /**
     * 删除菜品原料关联信息
     * 
     * @param id 菜品原料关联主键
     * @return 结果
     */
    public int deleteCookDishesMaterialById(Long id);
}
