package com.njcn.device.pq.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
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> {


    /**
     * 获取监测点数据完整性
     * @author cdf
     * @date 2023/3/29
     */
    List<LineDataIntegrity> getLineIntegrityRate(@Param("lineIds")List<String> lineIds,@Param("startTime")String startTime,@Param("endTime")String endTime);

    /***
     * 监测点完整性
     * @author wr
     * @date 2023-04-03 10:10
     * @param param
     * @return List<OnlineRate>
     */
    List<RStatIntegrityVO> getOnIntegrityByIds(@Param("param") OnlineRateParam param);

    List<RStatIntegrityVO> getOnIntegrityByIdsAndTime (@Param("list")List<String> lineIds,@Param("startTime")String startTime,@Param("endTime")String endTime);
}
