package com.cpp.web.service.station;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cpp.web.domain.station.ForecastPowerShortTermRegulation;
import com.cpp.web.domain.station.ForecastPowerShortTermSend;

import java.util.List;

/**
 * cpp_forecast_power_short_term_his
 *
 * @author tl
 * @date 2024-09-23 15:28:33
 */
public interface ForecastPowerShortTermSendService extends IService<ForecastPowerShortTermSend> {

    /**
     * 根据时间 提前多久预测 场站编号查询数据
     *
     * @param time        时间
     * @param howLongAgo  提前多久预测
     * @param stationCode 场站数据
     * @return
     */
    ForecastPowerShortTermSend findByForecastTimeAndForecastHowLongAgoAndStationCode(Long time, int howLongAgo, String stationCode);

    /**
     * 根据时间 提前多久预测 场站编号查询数据
     *
     * @param startTime   开始时间
     * @param endTime     结束时间
     * @param howLongAgo  提前多久预测
     * @param stationCode 场站编号
     * @return
     */
    List<ForecastPowerShortTermSend> findByForecastTimeBetweenAndForecastHowLongAgoAndStationCode(Long startTime, Long endTime, Integer howLongAgo, String stationCode);

}
