package com.njcn.device.pq.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njcn.device.pq.mapper.PqDataVerifyCountMapper;
import com.njcn.device.pq.pojo.param.LineBaseQueryParam;
import com.njcn.device.pq.pojo.param.OnlineRateParam;
import com.njcn.device.pq.pojo.po.PqDataVerifyCount;
import com.njcn.device.pq.pojo.vo.OnlineMonitorVo;
import com.njcn.device.pq.service.IPqDataVerifyCountService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author cdf
 * @since 2025-06-10
 */
@Service
@RequiredArgsConstructor
@Slf4j
public class PqDataVerifyCountServiceImpl extends ServiceImpl<PqDataVerifyCountMapper, PqDataVerifyCount> implements IPqDataVerifyCountService {


    @Override
    public List<PqDataVerifyCount> getSumVerify(OnlineRateParam param) {
        return this.baseMapper.selectSumVerify(param);
    }

    @Override
    public List<OnlineMonitorVo> getAnomalousData(LineBaseQueryParam par) {
        return this.baseMapper.getAnomalousData(par.getLineIds(),par.getStartTime(),par.getEndTime());
    }
}
