package com.ruoyi.oa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.oa.mapper.CmcDeviceHandoverMapper;
import com.ruoyi.oa.domain.CmcDeviceHandover;
import com.ruoyi.oa.service.ICmcDeviceHandoverService;

/**
 * cmc设备移交Service业务层处理
 * 
 * @author cmc
 * @date 2024-05-21
 */
@Service
public class CmcDeviceHandoverServiceImpl implements ICmcDeviceHandoverService 
{
    @Autowired
    private CmcDeviceHandoverMapper cmcDeviceHandoverMapper;

    /**
     * 查询cmc设备移交
     * 
     * @param deviceHandoverId cmc设备移交主键
     * @return cmc设备移交
     */
    @Override
    public CmcDeviceHandover selectCmcDeviceHandoverByDeviceHandoverId(Integer deviceHandoverId)
    {
        return cmcDeviceHandoverMapper.selectCmcDeviceHandoverByDeviceHandoverId(deviceHandoverId);
    }

    /**
     * 查询cmc设备移交列表
     * 
     * @param cmcDeviceHandover cmc设备移交
     * @return cmc设备移交
     */
    @Override
    public List<CmcDeviceHandover> selectCmcDeviceHandoverList(CmcDeviceHandover cmcDeviceHandover)
    {
        return cmcDeviceHandoverMapper.selectCmcDeviceHandoverList(cmcDeviceHandover);
    }

    /**
     * 新增cmc设备移交
     * 
     * @param cmcDeviceHandover cmc设备移交
     * @return 结果
     */
    @Override
    public int insertCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover)
    {
        return cmcDeviceHandoverMapper.insertCmcDeviceHandover(cmcDeviceHandover);
    }

    /**
     * 修改cmc设备移交
     * 
     * @param cmcDeviceHandover cmc设备移交
     * @return 结果
     */
    @Override
    public int updateCmcDeviceHandover(CmcDeviceHandover cmcDeviceHandover)
    {
        return cmcDeviceHandoverMapper.updateCmcDeviceHandover(cmcDeviceHandover);
    }

    /**
     * 批量删除cmc设备移交
     * 
     * @param deviceHandoverIds 需要删除的cmc设备移交主键
     * @return 结果
     */
    @Override
    public int deleteCmcDeviceHandoverByDeviceHandoverIds(Integer[] deviceHandoverIds)
    {
        return cmcDeviceHandoverMapper.deleteCmcDeviceHandoverByDeviceHandoverIds(deviceHandoverIds);
    }

    /**
     * 删除cmc设备移交信息
     * 
     * @param deviceHandoverId cmc设备移交主键
     * @return 结果
     */
    @Override
    public int deleteCmcDeviceHandoverByDeviceHandoverId(Integer deviceHandoverId)
    {
        return cmcDeviceHandoverMapper.deleteCmcDeviceHandoverByDeviceHandoverId(deviceHandoverId);
    }
}
