package com.njcn.device.pms.mapper.majornetwork;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.device.pms.pojo.dto.MonitorIntegrityDataDTO;
import com.njcn.device.pms.pojo.param.DataQualityDetailsParam;
import com.njcn.device.pq.pojo.param.LineBaseQueryParam;
import com.njcn.device.pq.pojo.param.OnlineRateParam;
import com.njcn.device.pq.pojo.po.LineDataIntegrity;
import com.njcn.device.pq.pojo.po.RStatIntegrityD;
import com.njcn.device.pq.pojo.vo.RStatIntegrityVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 数据完整性日表 Mapper 接口
 * </p>
 *
 * @author hongawen
 * @since 2023-03-28
 */
public interface RStatIntegrityDMapper extends BaseMapper<RStatIntegrityD> {


    Page<RStatIntegrityD>  getMonitorIntegrityData (@Param("page") Page<RStatIntegrityD> page,@Param("monitorIntegrityDataDTO")MonitorIntegrityDataDTO monitorIntegrityDataDTO,@Param("ids")List<String> ids);


    /**
     * @Description: 实收数大于0的，监测点数据完整率信息
     * @param monitorIds 监测点id
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @param type 是否判断实收数大于0
     * @Date: 2024/5/30 9:48
     */
    List<RStatIntegrityVO> getMonitorRealTimeBeZero(@Param("monitorIds") List<String> monitorIds,
                                                    @Param("startTime") String startTime,
                                                    @Param("endTime") String endTime,
                                                    @Param("type") Integer type
                                                    );
}
