|
@@ -50,7 +50,7 @@ public class EconomicController {
|
|
|
|
|
|
) throws Exception {
|
|
|
|
|
|
- Map<String, Object> map = economicService.getEconomyPointInfo( date,companyId, type, statype,datetype);
|
|
|
+ Map<String, Object> map = economicService.getEconomyPointInfo(date, companyId, type, statype, datetype);
|
|
|
if (null != map) {
|
|
|
return R.data(ResultMsg.ok(map));
|
|
|
} else {
|
|
@@ -67,7 +67,7 @@ public class EconomicController {
|
|
|
@RequestParam(value = "endtime", required = true) Date endtime
|
|
|
) throws Exception {
|
|
|
|
|
|
- List<PowercurveVo> map = economicService.powercurve(type,wpid, starttime, endtime);
|
|
|
+ List<PowercurveVo> map = economicService.powercurve(type, wpid, starttime, endtime);
|
|
|
if (null != map) {
|
|
|
return R.data(ResultMsg.ok(map));
|
|
|
} else {
|
|
@@ -77,27 +77,29 @@ public class EconomicController {
|
|
|
|
|
|
/**
|
|
|
* 功率列表
|
|
|
+ *
|
|
|
* @param windturbineids 风机ids
|
|
|
- * @param type 0:全部;-1:风电;-2:光伏
|
|
|
- * @param dateType 1:日;2:月;3:年
|
|
|
+ * @param type 0:全部;-1:风电;-2:光伏
|
|
|
+ * @param dateType 1:日;2:月;3:年
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/curvefitting")
|
|
|
@ResponseBody
|
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
- public R curvefittinglist(@RequestParam(value = "companys",required = true) String companys,
|
|
|
- @RequestParam(value = "type",required = true) String type,
|
|
|
- @RequestParam(value = "wpids",required = false) String wpids,
|
|
|
- @RequestParam(value = "windturbineids",required = false) String windturbineids,
|
|
|
+ public R curvefittinglist(@RequestParam(value = "companys", required = true) String companys,
|
|
|
+ @RequestParam(value = "type", required = true) String type,
|
|
|
+ @RequestParam(value = "wpids", required = false) String wpids,
|
|
|
+ @RequestParam(value = "windturbineids", required = false) String windturbineids,
|
|
|
@RequestParam(value = "starttime", required = false) String starttime,
|
|
|
- @RequestParam(value = "endtime", required = false) String endtime,
|
|
|
+ @RequestParam(value = "endtime", required = false) String endtime,
|
|
|
@RequestParam(value = "dateType", required = false) String dateType
|
|
|
) throws Exception {
|
|
|
- List<Glqx>curvefitting = null;
|
|
|
- if(StringUtils.isEmpty(type)) type = "-2";
|
|
|
- if(StringUtils.isEmpty(dateType)) dateType = "1";
|
|
|
+ List<Glqx> curvefitting = null;
|
|
|
+ if (StringUtils.isEmpty(type)) type = "-2";
|
|
|
+ if (StringUtils.isEmpty(dateType)) dateType = "1";
|
|
|
|
|
|
- curvefitting = economicService.curveFittingList(wpids, type, starttime,endtime,dateType,windturbineids);
|
|
|
+
|
|
|
+ curvefitting = economicService.curveFittingList(companys,wpids, type, starttime, endtime, dateType, windturbineids);
|
|
|
if (StringUtils.isNotNull(curvefitting)) {
|
|
|
return R.data(ResultMsg.ok(curvefitting));
|
|
|
} else {
|
|
@@ -105,4 +107,36 @@ public class EconomicController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 光资源分析
|
|
|
+ *
|
|
|
+ * @param windturbineids 风机ids
|
|
|
+ * @param type 0:全部;-1:风电;-2:光伏
|
|
|
+ * @param dateType 1:日;2:月;3:年
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/irradiance")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R irradiance(@RequestParam(value = "companys", required = true) String companys,
|
|
|
+ @RequestParam(value = "type", required = true) String type,
|
|
|
+ @RequestParam(value = "wpids", required = false) String wpids,
|
|
|
+ @RequestParam(value = "windturbineids", required = false) String windturbineids,
|
|
|
+ @RequestParam(value = "starttime", required = false) String starttime,
|
|
|
+ @RequestParam(value = "endtime", required = false) String endtime,
|
|
|
+ @RequestParam(value = "dateType", required = false) String dateType
|
|
|
+ ) throws Exception {
|
|
|
+ List<Glqx> irradiance = null;
|
|
|
+ if (StringUtils.isEmpty(type)) type = "-2";
|
|
|
+ if (StringUtils.isEmpty(dateType)) dateType = "1";
|
|
|
+
|
|
|
+ irradiance = economicService.irradiance(companys,wpids, type, starttime, endtime, dateType, windturbineids);
|
|
|
+ if (StringUtils.isNotNull(irradiance)) {
|
|
|
+ return R.data(ResultMsg.ok(irradiance));
|
|
|
+ } else {
|
|
|
+ return R.error(ResultMsg.error());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|