package com.ruoyi.powerdistribution.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.powerdistribution.domain.PdmStopTarge;
import com.ruoyi.powerdistribution.domain.vo.StopTargetAndRecords;

/**
 * 停电预算Mapper接口
 *
 * @author ruoyi
 * @date 2024-12-09
 */
public interface PdmStopTargeMapper extends BaseMapper<PdmStopTarge>
{
    /**
     * 查询停电预算
     *
     * @param id 停电预算主键
     * @return 停电预算
     */
    public PdmStopTarge selectPdmStopTargeById(Long id);

    /**
     * 查询停电预算列表
     *
     * @param pdmStopTarge 停电预算
     * @return 停电预算集合
     */
    public List<PdmStopTarge> selectPdmStopTargeList(PdmStopTarge pdmStopTarge);

    /**
     * 新增停电预算
     *
     * @param pdmStopTarge 停电预算
     * @return 结果
     */
    public int insertPdmStopTarge(PdmStopTarge pdmStopTarge);

    /**
     * 修改停电预算
     *
     * @param pdmStopTarge 停电预算
     * @return 结果
     */
    public int updatePdmStopTarge(PdmStopTarge pdmStopTarge);

    /**
     * 删除停电预算
     *
     * @param id 停电预算主键
     * @return 结果
     */
    public int deletePdmStopTargeById(Long id);

    /**
     * 批量删除停电预算
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePdmStopTargeByIds(Long[] ids);

    /**
     * 获取目标停电和实际停电展板
     * @param reportYear
     * @return
     */
    List<StopTargetAndRecords> selectTargetAndActual(String reportYear);
}
