|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.gyee.runeconomy.dto.result.JsonResult;
|
|
import com.gyee.runeconomy.dto.result.JsonResult;
|
|
import com.gyee.runeconomy.dto.result.ResultCode;
|
|
import com.gyee.runeconomy.dto.result.ResultCode;
|
|
import com.gyee.runeconomy.service.WindDirection.WindDirectionService;
|
|
import com.gyee.runeconomy.service.WindDirection.WindDirectionService;
|
|
|
|
+import com.gyee.runeconomy.service.WindDirection.WindMachineJsService;
|
|
import com.gyee.runeconomy.service.WindDirection.WindMachineService;
|
|
import com.gyee.runeconomy.service.WindDirection.WindMachineService;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -18,6 +19,8 @@ public class WindDirectionController {
|
|
private WindDirectionService windDirectionService;
|
|
private WindDirectionService windDirectionService;
|
|
@Resource
|
|
@Resource
|
|
private WindMachineService windMachineService;
|
|
private WindMachineService windMachineService;
|
|
|
|
+ @Resource
|
|
|
|
+ private WindMachineJsService windMachineJsService;
|
|
/***
|
|
/***
|
|
* 风速风向频次玫瑰图
|
|
* 风速风向频次玫瑰图
|
|
* @return
|
|
* @return
|
|
@@ -51,4 +54,16 @@ public class WindDirectionController {
|
|
Object o = windMachineService.machine(wpid);
|
|
Object o = windMachineService.machine(wpid);
|
|
return JsonResult.successData(ResultCode.SUCCESS, o);
|
|
return JsonResult.successData(ResultCode.SUCCESS, o);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 单机偏差分析
|
|
|
|
+
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/machinejs")
|
|
|
|
+ public JSONObject Deviationmachinejs(String wpid,String time) throws Exception {
|
|
|
|
+
|
|
|
|
+ Object o = windMachineJsService.machine(wpid,time);
|
|
|
|
+ return JsonResult.successData(ResultCode.SUCCESS, o);
|
|
|
|
+ }
|
|
}
|
|
}
|