package com.ruoyi.predict.service.impl;

import com.ruoyi.predict.domain.ForecastReport;
import com.ruoyi.predict.mapper.ForecastReportMapper;
import com.ruoyi.predict.service.IForecastReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ForecastReportService业务层处理
 * 
 * @author hlf
 * @date 2022-10-26
 */
@Service
public class ForecastReportServiceImpl implements IForecastReportService 
{
    @Autowired(required = false)
    private ForecastReportMapper forecastReportMapper;

    /**
     * 查询ForecastReport
     * 
     * @param terminalNo ForecastReportID
     * @return ForecastReport
     */
    @Override
    public ForecastReport selectForecastReportById(Long terminalNo, Long terminalType)
    {
        return forecastReportMapper.selectForecastReportById(terminalNo, terminalType);
    }

    /**
     * 查询ForecastReport列表
     * 
     * @param forecastReport ForecastReport
     * @return ForecastReport
     */
    @Override
    public List<ForecastReport> selectForecastReportList(ForecastReport forecastReport)
    {
        return forecastReportMapper.selectForecastReportList(forecastReport);
    }

    /**
     * 新增ForecastReport
     * 
     * @param forecastReport ForecastReport
     * @return 结果
     */
    @Override
    public int insertForecastReport(ForecastReport forecastReport)
    {
        return forecastReportMapper.insertForecastReport(forecastReport);
    }

    /**
     * 修改ForecastReport
     * 
     * @param forecastReport ForecastReport
     * @return 结果
     */
    @Override
    public int updateForecastReport(ForecastReport forecastReport)
    {
        return forecastReportMapper.updateForecastReport(forecastReport);
    }

    /**
     * 删除ForecastReport信息
     * 
     * @param terminalNo ForecastReportID
     * @return 结果
     */
    @Override
    public int deleteForecastReportById(Long terminalNo, Long terminalType)
    {
        return forecastReportMapper.deleteForecastReportById(terminalNo, terminalType);
    }
}
