package com.jiayue.biz.controller; import com.jiayue.biz.service.WindTowerCalculationDataService; import com.jiayue.common.core.controller.BaseController; import com.jiayue.common.core.domain.AjaxResult; import com.jiayue.common.core.page.TableDataInfo; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.Date; /** * 测风塔计算数据Controller * * @author tl * @date 2022-05-24 */ @RequiredArgsConstructor(onConstructor_ = @Autowired) @RestController @RequestMapping("/dataQuery/windTowerCalculationData") public class WindTowerCalculationDataController extends BaseController { private final WindTowerCalculationDataService windTowerCalculationDataService; /** * 月平均风切变 * * @param time 时间 * @param height 层高 * @param eqId 设备id * @return * @throws Exception */ @GetMapping(value = "/getWindShearByEqidAndAverageAndTime") public AjaxResult getWindShearByEqidAndAverageAndTime(Long startTime,Long endTime, String height, String eqId) { return AjaxResult.success(windTowerCalculationDataService.getWindShearByEqidAndAverageAndTime(startTime,endTime, height, eqId)); } /** * 平均风速(统计曲线图) * * @param startTime 开始时间 * @param endTime 结束时间 * @param height 层高 * @param eqId 场站编号 * @return */ @GetMapping(value = "/getWindSpeedByEqidAndTime") public TableDataInfo getWs(Long startTime, Long endTime, String height, String eqId,String uid) { return getDataTable(windTowerCalculationDataService.getWindSpeed(startTime, endTime, height, eqId,uid)); } /** * 平均湍流(统计曲线图) * * @param height 层高 * @param eqId 场站编号 * @return */ @GetMapping(value = "/getTurbulenceByEqidAndTime") public TableDataInfo getTurbulence(Long startTime, Long endTime, String height, String eqId) { return getDataTable(windTowerCalculationDataService.getTurbulence(startTime,endTime, height, eqId)); } /** * 平均空气密度(统计曲线图) * * @param startTime 开始时间 * @param endTime 结束时 * @param equipmentId 场站编号 * @param uid 年月区分id * @return */ @GetMapping(value = "/getAirDensityByEqidAndTime") public TableDataInfo getAirDensity(Long startTime, Long endTime,String equipmentId,String uid) { return getDataTable(windTowerCalculationDataService.getAirDensity(startTime, endTime,equipmentId,uid)); } /** * 平均空气密度(统计曲线图) * * @param startTime 开始时间 * @param endTime 结束时 * @param eqId 场站编号 * @param uid 年月区分id * @param height 层高 * @return */ @GetMapping(value = "/getWpdByEqidAndTime") public TableDataInfo getWpd(Long startTime, Long endTime, String height, String eqId,String uid) { return getDataTable(windTowerCalculationDataService.getWpd(startTime, endTime, height, eqId,uid)); } /** * 平均风切变(统计曲线图) * * @param eqId 场站编号 * @param height 层高 * @return */ @GetMapping(value = "/getShearByEqidAndTime") public TableDataInfo getShear(Long startTime, Long endTime,String height, String eqId) { return getDataTable(windTowerCalculationDataService.getShear(startTime,endTime, height, eqId)); } /** * 风资源年统计(风速 + 风功率密度) * @param startTime * @param endTime * @param height * @param eqId * @return */ @GetMapping(value = "/getWindResourcesByEqidAndTime") public TableDataInfo getWindResources(Long startTime, Long endTime,String height,String eqId) { return getDataTable(windTowerCalculationDataService.getWindResources(startTime,endTime, height, eqId)); } /** * 风资源年统计(空气密度) * @param startTime * @param endTime * @param eqId * @return */ @GetMapping(value = "/getDensityByEqIdAndTime") public TableDataInfo getDensity(Long startTime, Long endTime,String eqId) { return getDataTable(windTowerCalculationDataService.getDensityYear(startTime,endTime, eqId)); } /** * Gumbel分布概率 * @param startTime * @param endTime * @param eqId * @return */ @GetMapping(value = "/getGumbelByEqIdAndTime") public TableDataInfo getGumbel(Long startTime, Long endTime,String eqId,String height) { return getDataTable(windTowerCalculationDataService.getGumbel(startTime,endTime, eqId,height)); } }