|
@@ -30,7 +30,7 @@ public class PerformanceCurvefittingController {
|
|
private PerformanceCurvefittingService performanceCurvefittingService;
|
|
private PerformanceCurvefittingService performanceCurvefittingService;
|
|
|
|
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
|
|
+ * 功率列表
|
|
* @param windturbineIds 风机ids
|
|
* @param windturbineIds 风机ids
|
|
* @param type 0:全部;-1:风电;-2:光伏(暂时默认 -1;没有光伏的功率曲线)
|
|
* @param type 0:全部;-1:风电;-2:光伏(暂时默认 -1;没有光伏的功率曲线)
|
|
* @param dateType 1:日;2:月;3:年
|
|
* @param dateType 1:日;2:月;3:年
|
|
@@ -39,6 +39,32 @@ public class PerformanceCurvefittingController {
|
|
@GetMapping("/curvefitting")
|
|
@GetMapping("/curvefitting")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
|
+ public R curvefittinglist(@RequestParam(value = "windturbineIds", required = true) String windturbineIds,
|
|
|
|
+ @RequestParam(value = "type", required = true) String type,
|
|
|
|
+ @RequestParam(value = "dateType", required = true) String dateType
|
|
|
|
+ ) {
|
|
|
|
+ Map<String, List<CurveVo>> curvefitting = null;
|
|
|
|
+ try {
|
|
|
|
+ curvefitting = performanceCurvefittingService.curveFittingList(windturbineIds, type, dateType);
|
|
|
|
+ return R.data(ResultMsg.ok(curvefitting));
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ return R.data(ResultMsg.error());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 功率曲线拟合
|
|
|
|
+ * @param windturbineIds 风机ids
|
|
|
|
+ * @param type 0:全部;-1:风电;-2:光伏(暂时默认 -1;没有光伏的功率曲线)
|
|
|
|
+ * @param dateType 1:日;2:月;3:年
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/curve-fitting")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
public R curvefitting(@RequestParam(value = "windturbineIds", required = true) String windturbineIds,
|
|
public R curvefitting(@RequestParam(value = "windturbineIds", required = true) String windturbineIds,
|
|
@RequestParam(value = "type", required = true) String type,
|
|
@RequestParam(value = "type", required = true) String type,
|
|
@RequestParam(value = "dateType", required = true) String dateType
|
|
@RequestParam(value = "dateType", required = true) String dateType
|
|
@@ -51,6 +77,5 @@ public class PerformanceCurvefittingController {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
return R.data(ResultMsg.error());
|
|
return R.data(ResultMsg.error());
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|