package com.ruoyi.predict.service.impl;

import com.ruoyi.predict.domain.ProjectUspTsPeriodData;
import com.ruoyi.predict.mapper.ProjectUspTsPeriodDataMapper;
import com.ruoyi.predict.service.IProjectUspTsPeriodDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

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

/**
 * ProjectUspTsPeriodDataService业务层处理
 *
 * @author hlf
 * @date 2021-09-15
 */
@Service
public class ProjectUspTsPeriodDataServiceImpl implements IProjectUspTsPeriodDataService {
    @Autowired(required = false)
    private ProjectUspTsPeriodDataMapper projectUspTsPeriodDataMapper;

    /**
     * 查询ProjectUspTsPeriodData
     *
     * @param projectNo ProjectUspTsPeriodDataID
     * @return ProjectUspTsPeriodData
     */
    @Override
    public ProjectUspTsPeriodData selectProjectUspTsPeriodDataById(Long projectNo) {
        return projectUspTsPeriodDataMapper.selectProjectUspTsPeriodDataById(projectNo);
    }

    /**
     * 查询ProjectUspTsPeriodData列表
     *
     * @param projectUspTsPeriodData ProjectUspTsPeriodData
     * @return ProjectUspTsPeriodData
     */
    @Override
    public List<ProjectUspTsPeriodData> selectProjectUspTsPeriodDataList(ProjectUspTsPeriodData projectUspTsPeriodData) {
        return projectUspTsPeriodDataMapper.selectProjectUspTsPeriodDataList(projectUspTsPeriodData);
    }

    @Override
    public List<ProjectUspTsPeriodData> selectProjectUspTsPeriodData(Long projectNo, Long modelNo, Long timeScale, Date dataTime) {
        return projectUspTsPeriodDataMapper.selectProjectUspTsPeriodData(projectNo, modelNo, timeScale, dataTime);
    }
}
