package com.ruoyi.predict.service.impl;

import com.ruoyi.predict.domain.WfDaPfErrInterval;
import com.ruoyi.predict.mapper.WfDaPfErrIntervalMapper;
import com.ruoyi.predict.service.IWfDaPfErrIntervalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

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

/**
 * WfDaPfErrIntervalService业务层处理
 *
 * @author hlf
 * @date 2021-07-07
 */
@Service
public class WfDaPfErrIntervalServiceImpl implements IWfDaPfErrIntervalService {
    @Autowired(required = false)
    private WfDaPfErrIntervalMapper wfDaPfErrIntervalMapper;

    /**
     * 查询WfDaPfErrInterval
     *
     * @param windplantNo WfDaPfErrIntervalID
     * @return WfDaPfErrInterval
     */
    @Override
    public WfDaPfErrInterval selectWfDaPfErrIntervalById(Long windplantNo) {
        return wfDaPfErrIntervalMapper.selectWfDaPfErrIntervalById(windplantNo);
    }

    /**
     * 查询WfDaPfErrInterval列表
     *
     * @param wfDaPfErrInterval WfDaPfErrInterval
     * @return WfDaPfErrInterval
     */
    @Override
    public List<WfDaPfErrInterval> selectWfDaPfErrIntervalList(WfDaPfErrInterval wfDaPfErrInterval) {
        return wfDaPfErrIntervalMapper.selectWfDaPfErrIntervalList(wfDaPfErrInterval);
    }

    @Override
    public WfDaPfErrInterval selectWfDaPfErrInterval(Long windplantNo, Long modelNo, Date dateTime) {
        return wfDaPfErrIntervalMapper.selectWfDaPfErrInterval(windplantNo, modelNo, dateTime);
    }
}
