package com.njcn.harmonic.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.dto.PublicDTO;
import com.njcn.harmonic.pojo.po.RMpPollutionDPO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

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

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

    int insertOrUpdate(RMpPollutionDPO record);

    int insertOrUpdateSelective(RMpPollutionDPO record);

    List<RMpPollutionDPO> selectMaxList(@Param("ids") List<String> line,
                                        @Param("pollutionType") String pollutionType,
                                        @Param("statTime") String statTime,
                                        @Param("endTime") String endTime);

    List<PublicDTO> getTop10Line(@Param("list") List<String> lineList,
                                 @Param("start") DateTime searchBeginTime,
                                 @Param("end") DateTime searchEndTime,
                                 @Param("pollutionType") String id);

    List<RMpPollutionDPO> selectSumList(@Param("ids") List<String> line,
                                        @Param("pollutionType") List<String> pollutionType,
                                        @Param("statTime") String statTime,
                                        @Param("endTime") String endTime);
}