package com.ruoyi.predict.service.impl;

import com.ruoyi.predict.domain.WfUspPfErrInterval;
import com.ruoyi.predict.mapper.WfUspPfErrIntervalMapper;
import com.ruoyi.predict.service.IWfUspPfErrIntervalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * WfUspPfErrIntervalService业务层处理
 *
 * @author hlf
 * @date 2021-09-06
 */
@Service
public class WfUspPfErrIntervalServiceImpl implements IWfUspPfErrIntervalService {
    @Autowired(required = false)
    private WfUspPfErrIntervalMapper wfUspPfErrIntervalMapper;

    /**
     * 查询WfUspPfErrInterval
     *
     * @param windplantNo WfUspPfErrIntervalID
     * @return WfUspPfErrInterval
     */
    @Override
    public WfUspPfErrInterval selectWfUspPfErrIntervalById(Long windplantNo) {
        return wfUspPfErrIntervalMapper.selectWfUspPfErrIntervalById(windplantNo);
    }

    /**
     * 查询WfUspPfErrInterval列表
     *
     * @param wfUspPfErrInterval WfUspPfErrInterval
     * @return WfUspPfErrInterval
     */
    @Override
    public List<WfUspPfErrInterval> selectWfUspPfErrIntervalList(WfUspPfErrInterval wfUspPfErrInterval) {
        return wfUspPfErrIntervalMapper.selectWfUspPfErrIntervalList(wfUspPfErrInterval);
    }

    @Override
    public WfUspPfErrInterval selectWfUspPfErrInterval(Long windplantNo, Long modelNo, Long timeScale, Date dateTime) {
        return wfUspPfErrIntervalMapper.selectWfUspPfErrInterval(windplantNo, modelNo, timeScale, dateTime);
    }
}
