123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- 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));
- }
- }
|