package com.ruoyi.predict.service.impl;

import com.ruoyi.predict.domain.WfStatPeriodData;
import com.ruoyi.predict.mapper.WfStatPeriodDataMapper;
import com.ruoyi.predict.service.IWfStatPeriodDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

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

/**
 * WfStatPeriodDataService业务层处理
 *
 * @author hlf
 * @date 2021-07-07
 */
@Service
public class WfStatPeriodDataServiceImpl implements IWfStatPeriodDataService {
    @Autowired(required = false)
    private WfStatPeriodDataMapper wfStatPeriodDataMapper;

    /**
     * 查询WfStatPeriodData
     *
     * @param windplantNo WfStatPeriodDataID
     * @return WfStatPeriodData
     */
    @Override
    public List<WfStatPeriodData> selectWfStatPeriodDataById(Long windplantNo) {
        return wfStatPeriodDataMapper.selectWfStatPeriodDataById(windplantNo);
    }

    /**
     * 查询WfStatPeriodData列表
     *
     * @param wfStatPeriodData WfStatPeriodData
     * @return WfStatPeriodData
     */
    @Override
    public List<WfStatPeriodData> selectWfStatPeriodDataList(WfStatPeriodData wfStatPeriodData) {
        return wfStatPeriodDataMapper.selectWfStatPeriodDataList(wfStatPeriodData);
    }

    @Override
    public WfStatPeriodData selectWfStatPeriodData(Long windplantNo, Date dataTime) {
        return wfStatPeriodDataMapper.selectWfStatPeriodData(windplantNo, dataTime);
    }

    @Override
    public List<WfStatPeriodData> selectWfStatPeriodData1(Long windplantNo, Date dataTime) {
        return wfStatPeriodDataMapper.selectWfStatPeriodData1(windplantNo, dataTime);
    }
}
