package com.njcn.harmonic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.device.pq.pojo.dto.PollutionGridDiagramDTO;
import com.njcn.harmonic.pojo.po.RStatPollutionSubstationM;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Description:
 * 接口文档访问地址：http://serverIP:port/swagger-ui.html
 * Date: 2022/10/13  13:58【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
public interface RStatPollutionSubstationMMapper extends BaseMapper<RStatPollutionSubstationM> {
    int updateBatch(List<RStatPollutionSubstationM> list);

    int batchInsert(@Param("list") List<RStatPollutionSubstationM> list);

    int insertOrUpdate(RStatPollutionSubstationM record);

    int insertOrUpdateSelective(RStatPollutionSubstationM record);

    Page<PollutionGridDiagramDTO> selectBySubstationPage(Page page,
                                                       @Param("ids") List<String> ids,
                                                       @Param("typeMapId") Map<String,String> typeMapId,
                                                       @Param("startTime") String startTime,
                                                       @Param("endTime") String endTime
                                                       );
}