package com.ruoyi.powerdistribution.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.powerdistribution.mapper.PdmMaintenanceCompletionStatisticsMapper;
import com.ruoyi.powerdistribution.domain.PdmMaintenanceCompletionStatistics;
import com.ruoyi.powerdistribution.service.IPdmMaintenanceCompletionStatisticsService;

/**
 * 线路检修完成情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
@Service
public class PdmMaintenanceCompletionStatisticsServiceImpl implements IPdmMaintenanceCompletionStatisticsService 
{
    @Autowired
    private PdmMaintenanceCompletionStatisticsMapper pdmMaintenanceCompletionStatisticsMapper;

    /**
     * 查询线路检修完成情况
     * 
     * @param eventNo 线路检修完成情况主键
     * @return 线路检修完成情况
     */
    @Override
    public PdmMaintenanceCompletionStatistics selectPdmMaintenanceCompletionStatisticsByEventNo(String eventNo)
    {
        return pdmMaintenanceCompletionStatisticsMapper.selectPdmMaintenanceCompletionStatisticsByEventNo(eventNo);
    }

    /**
     * 查询线路检修完成情况列表
     * 
     * @param pdmMaintenanceCompletionStatistics 线路检修完成情况
     * @return 线路检修完成情况
     */
    @Override
    public List<PdmMaintenanceCompletionStatistics> selectPdmMaintenanceCompletionStatisticsList(PdmMaintenanceCompletionStatistics pdmMaintenanceCompletionStatistics)
    {
        return pdmMaintenanceCompletionStatisticsMapper.selectPdmMaintenanceCompletionStatisticsList(pdmMaintenanceCompletionStatistics);
    }

    /**
     * 新增线路检修完成情况
     * 
     * @param pdmMaintenanceCompletionStatistics 线路检修完成情况
     * @return 结果
     */
    @Override
    public int insertPdmMaintenanceCompletionStatistics(PdmMaintenanceCompletionStatistics pdmMaintenanceCompletionStatistics)
    {
        return pdmMaintenanceCompletionStatisticsMapper.insertPdmMaintenanceCompletionStatistics(pdmMaintenanceCompletionStatistics);
    }

    /**
     * 修改线路检修完成情况
     * 
     * @param pdmMaintenanceCompletionStatistics 线路检修完成情况
     * @return 结果
     */
    @Override
    public int updatePdmMaintenanceCompletionStatistics(PdmMaintenanceCompletionStatistics pdmMaintenanceCompletionStatistics)
    {
        return pdmMaintenanceCompletionStatisticsMapper.updatePdmMaintenanceCompletionStatistics(pdmMaintenanceCompletionStatistics);
    }

    /**
     * 批量删除线路检修完成情况
     * 
     * @param eventNos 需要删除的线路检修完成情况主键
     * @return 结果
     */
    @Override
    public int deletePdmMaintenanceCompletionStatisticsByEventNos(String[] eventNos)
    {
        return pdmMaintenanceCompletionStatisticsMapper.deletePdmMaintenanceCompletionStatisticsByEventNos(eventNos);
    }

    /**
     * 删除线路检修完成情况信息
     * 
     * @param eventNo 线路检修完成情况主键
     * @return 结果
     */
    @Override
    public int deletePdmMaintenanceCompletionStatisticsByEventNo(String eventNo)
    {
        return pdmMaintenanceCompletionStatisticsMapper.deletePdmMaintenanceCompletionStatisticsByEventNo(eventNo);
    }
}
