package com.ximai.mes.dv.service.impl.dvBrandQuotation;

import java.util.List;

import com.ximai.mes.dv.domain.devBrandQuotation.DvBrandQuotationBom;
import com.ximai.mes.dv.mapper.devBrandQuotation.DvBrandQuotationBomMapper;
import com.ximai.mes.dv.service.devBrandQuotation.IDvBrandQuotationBomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author yinjinlu
 * @date 2024-01-25
 */
@Service
public class DvBrandQuotationBomServiceImpl implements IDvBrandQuotationBomService
{
    @Autowired
    private DvBrandQuotationBomMapper devBrandQuotationBomMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param bomItemId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DvBrandQuotationBom selectDevBrandQuotationBomByBomItemId(Long bomItemId)
    {
        return devBrandQuotationBomMapper.selectDevBrandQuotationBomByBomItemId(bomItemId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param devBrandQuotationBom 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DvBrandQuotationBom> selectDevBrandQuotationBomList(DvBrandQuotationBom devBrandQuotationBom)
    {
        return devBrandQuotationBomMapper.selectDevBrandQuotationBomList(devBrandQuotationBom);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param devBrandQuotationBom 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDevBrandQuotationBom(DvBrandQuotationBom devBrandQuotationBom)
    {
        return devBrandQuotationBomMapper.insertDevBrandQuotationBom(devBrandQuotationBom);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param devBrandQuotationBom 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDevBrandQuotationBom(DvBrandQuotationBom devBrandQuotationBom)
    {
        return devBrandQuotationBomMapper.updateDevBrandQuotationBom(devBrandQuotationBom);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param bomItemIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDevBrandQuotationBomByBomItemIds(Long[] bomItemIds)
    {
        return devBrandQuotationBomMapper.deleteDevBrandQuotationBomByBomItemIds(bomItemIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param bomItemId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDevBrandQuotationBomByBomItemId(Long bomItemId)
    {
        return devBrandQuotationBomMapper.deleteDevBrandQuotationBomByBomItemId(bomItemId);
    }
}
