|
@@ -6,10 +6,8 @@ import com.gyee.frame.common.spring.InitialRunner;
|
|
|
import com.gyee.frame.model.auto.*;
|
|
|
import com.gyee.frame.model.custom.DataVo;
|
|
|
import com.gyee.frame.model.custom.PointData;
|
|
|
-import com.gyee.frame.service.ProjectPlanService;
|
|
|
import com.gyee.frame.service.WindPowerstationTestingPointService;
|
|
|
import com.gyee.frame.service.WindTurbineTestingPointAiService;
|
|
|
-import com.gyee.frame.service.WindpowerinfodayService;
|
|
|
import com.gyee.frame.util.DateUtils;
|
|
|
import com.gyee.frame.util.IRealTimeDataBaseUtil;
|
|
|
import com.gyee.frame.util.RealTimeDataBaseFactory;
|
|
@@ -28,10 +26,6 @@ public class RealPowerPushService {
|
|
|
@Resource
|
|
|
private WindPowerstationTestingPointService windPowerstationTestingPointService;
|
|
|
@Resource
|
|
|
- private WindpowerinfodayService windpowerinfodayService;
|
|
|
- @Resource
|
|
|
- private ProjectPlanService projectPlanService;
|
|
|
- @Resource
|
|
|
private WindTurbineTestingPointAiService windTurbineTestingPointAiService;
|
|
|
|
|
|
private final String QS = "0";
|
|
@@ -50,9 +44,9 @@ public class RealPowerPushService {
|
|
|
map.put(QS, findRealPower(QS));
|
|
|
map.put(FD, findRealPower(FD));
|
|
|
map.put(GF, findRealPower(GF));
|
|
|
-// map.put("QS_FDC",findRealPower("QS_FDC"));
|
|
|
-// map.put("QSQ02_GC",findRealPower("QSQ02_GC"));
|
|
|
-// map.put("QSQ05_XL",findRealPower("QSQ05_XL"));
|
|
|
+ map.put("QS_FDC",findRealPower("QS_FDC"));
|
|
|
+ map.put("QSQ02_GC",findRealPower("QSQ02_GC"));
|
|
|
+ map.put("QSQ05_XL",findRealPower("QSQ05_XL"));
|
|
|
|
|
|
return map;
|
|
|
|
|
@@ -106,7 +100,7 @@ public class RealPowerPushService {
|
|
|
|
|
|
cal.setTime(currentDate);
|
|
|
|
|
|
- if (cal.get(Calendar.MINUTE) > 45) {
|
|
|
+ if (cal.get(Calendar.MINUTE) > 30) {
|
|
|
cal.set(Calendar.MINUTE, 0);
|
|
|
cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
} else {
|
|
@@ -116,21 +110,22 @@ public class RealPowerPushService {
|
|
|
Date endDate = cal.getTime();
|
|
|
|
|
|
long pried = 3600l;
|
|
|
- long pried72 = 3600l;
|
|
|
- long num = DateUtils.hoursDiff(beginDate, endDate);
|
|
|
+ long num = DateUtils.hoursDiff(beginDate, endDate) ;
|
|
|
int cdqyc = 4; //未来4小时超短期预测
|
|
|
- String[] ycPoints1 = Constant.TPOINT_WP_FGLYC.split(",");
|
|
|
- String[] ycPoints2 = Constant.TPOINT_WP_FGLYC2.split(",");
|
|
|
-
|
|
|
- String[] ycPoints4 = Constant.TPOINT_WP_FGLYC4.split(",");
|
|
|
- String[] ycPoints5 = Constant.TPOINT_WP_FGLYC5.split(",");
|
|
|
+ String[] ycPoints1 = Constant.TPOINT_WP_FGLCDQ1.split(",");
|
|
|
+ String[] ycPoints2 = Constant.TPOINT_WP_FGLCDQ2.split(",");
|
|
|
+ int dqyc = 24; //未来24小时超短期预测
|
|
|
+ String[] ycDqPoints1 = Constant.TPOINT_WP_FGLDQ1.split(",");
|
|
|
+ String[] ycDqPoints2 = Constant.TPOINT_WP_FGLDQ2.split(",");
|
|
|
//String[] ycPoints3 = Constant.TPOINT_QS3_YGCL.split(",");
|
|
|
|
|
|
int length = 72;
|
|
|
-
|
|
|
+ Calendar c = Calendar.getInstance();
|
|
|
+ cal.setTime(beginDate);
|
|
|
for (int i = 0; i < length; i++) {
|
|
|
|
|
|
DataVo vo = new DataVo();
|
|
|
+ vo.setTime(c.getTime().getTime());
|
|
|
|
|
|
// vo.setValue1(0.0);// 应发功率
|
|
|
// vo.setValue2(0.0);// 实发功率
|
|
@@ -138,10 +133,12 @@ public class RealPowerPushService {
|
|
|
// vo.setValue4(0.0);// 预测功率
|
|
|
// vo.setValue5(0.0);// 保证功率
|
|
|
// vo.setValue6(0.0);// 平均风速
|
|
|
+// vo.setValue7(0.0);// 24小时预测功率
|
|
|
// vo.setValue8(0.0);// 72小时预测功率
|
|
|
// vo.setValue9(0.0);// 最优功率律
|
|
|
|
|
|
vos.add(vo);
|
|
|
+ c.add(Calendar.HOUR_OF_DAY,1);
|
|
|
}
|
|
|
|
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
@@ -170,182 +167,201 @@ public class RealPowerPushService {
|
|
|
|
|
|
|
|
|
if (num > 0) {
|
|
|
+
|
|
|
+/***************************************************************超短期功率预测***************************************************************************/
|
|
|
WindPowerStationTestingPoint2 ycgl1 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints1[0]);
|
|
|
- WindPowerStationTestingPoint2 dqycgl1 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints4[0]);
|
|
|
|
|
|
- List<PointData> ycgl1Datas = null;
|
|
|
- List<PointData> dqycglDatas = null;
|
|
|
if (null != ycgl1) {
|
|
|
- ycgl1Datas = realApiUtil.getHistoryDatasSnap(ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
- }
|
|
|
- if (null != dqycgl1) {
|
|
|
- dqycglDatas = realApiUtil.getHistoryDatasSnap(ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried72);
|
|
|
- }
|
|
|
+ List<PointData> datas = realApiUtil.getHistoryDatasSnap(ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
+ if (!datas.isEmpty()) {
|
|
|
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
+ if (ycmap.containsKey("cdq1")) {
|
|
|
+ String qs3_ycgl1 = (String) ycmap.get("cdq1");
|
|
|
|
|
|
- if (!dqycglDatas.isEmpty()){
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(station.getId())){
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
- if (ycmap.containsKey("dq1")) {
|
|
|
- String qs3_dq_ycgl1 = (String) ycmap.get("dq1");
|
|
|
-
|
|
|
- List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_dq_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried72);
|
|
|
+ List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
|
|
|
- for (int j = 0; j < dqycglDatas.size(); j++) {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(dqycglDatas.get(j).getPointTime() * 1000);
|
|
|
- vos.get(j).setValue8(StringUtils.round(dqycglDatas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
- if (j == dqycglDatas.size() - 1) {
|
|
|
- cal.setTime(new Date(dqycglDatas.get(j).getPointTime() * 1000));
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
+ vos.get(j).setValue4(StringUtils.round(datas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- }else {
|
|
|
- for (int j = 0; j < dqycglDatas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(dqycglDatas.get(j).getPointTime() * 1000);
|
|
|
+ } else {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- double ycgl = (vos.get(j).getValue4() == null ? 0.0 : vos.get(j).getValue4()) + (dqycglDatas.get(j) == null ? 0.0 : dqycglDatas.get(j).getPointValueInDouble());
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
|
|
|
- vos.get(j).setValue8(StringUtils.round(ycgl, 2));
|
|
|
+ double ycgl = (vos.get(j).getValue4() == null ? 0.0 : vos.get(j).getValue4()) + (datas.get(j) == null ? 0.0 : datas.get(j).getPointValueInDouble());
|
|
|
|
|
|
- if (j == dqycglDatas.size() - 1) {
|
|
|
- cal.setTime(new Date(dqycglDatas.get(j).getPointTime() * 1000));
|
|
|
+ vos.get(j).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- int dqsubresult = 0;
|
|
|
- int dqtotal = 0;
|
|
|
+ int subresult = 0;
|
|
|
+ int total = 0;
|
|
|
|
|
|
- if (length > dqycglDatas.size()) {
|
|
|
- dqsubresult = length - dqycglDatas.size();
|
|
|
+ if (length > datas.size()) {
|
|
|
+ subresult = length - datas.size();
|
|
|
+ if (subresult >= cdqyc) {
|
|
|
+ subresult = cdqyc;
|
|
|
+ }
|
|
|
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
- if (ycmap.containsKey("dq2")) {
|
|
|
- String[] ycPoints3 = (String[]) ycmap.get("dq2");
|
|
|
- for (int i = 0; i < dqsubresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(dqycglDatas.size() + i).setTime(cal.getTime().getTime());
|
|
|
- String qs3_ycgl = ycPoints3[i];
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints5[i]);
|
|
|
- vos.get(dqycglDatas.size() + i).setValue8(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
+ if (ycmap.containsKey("cdq2")) {
|
|
|
+ String[] ycPoints3 = (String[]) ycmap.get("cdq2");
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+ String qs3_ycgl = ycPoints3[i];
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints2[i]);
|
|
|
+
|
|
|
+ vos.get(datas.size() + i).setValue4(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- }else {
|
|
|
- for (int i = 0; i < dqsubresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(dqycglDatas.size() + i).setTime(cal.getTime().getTime());
|
|
|
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints5[i]);
|
|
|
+ } else {
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints2[i]);
|
|
|
|
|
|
- double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
+ double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
|
|
|
- ycgl = (vos.get(dqycglDatas.size() + i).getValue8() == null ? 0.0 : vos.get(dqycglDatas.size() + i).getValue8()) + ycgl;
|
|
|
+ ycgl = (vos.get(datas.size() + i).getValue4() == null ? 0.0 : vos.get(datas.size() + i).getValue4()) + ycgl;
|
|
|
|
|
|
- vos.get(dqycglDatas.size() + i).setValue8(StringUtils.round(ycgl, 2));
|
|
|
+ vos.get(datas.size() + i).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+// total = datas.size() + subresult;
|
|
|
+// subresult = length - (total);
|
|
|
+//
|
|
|
+// if (subresult > 0)
|
|
|
+// for (int i = 0; i < subresult; i++) {
|
|
|
+// cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+// vos.get(total + i).setTime(cal.getTime().getTime());
|
|
|
+// vos.get(total + i).setValue4(null);
|
|
|
+// }
|
|
|
}
|
|
|
- dqtotal = dqycglDatas.size() + dqsubresult;
|
|
|
- dqsubresult = length - dqtotal;
|
|
|
-
|
|
|
- if (dqsubresult > 0)
|
|
|
- for (int i = 0; i < dqsubresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(dqtotal + i).setTime(cal.getTime().getTime());
|
|
|
- vos.get(dqtotal + i).setValue8(null);
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
+/***************************************************************超短期功率预测***************************************************************************/
|
|
|
+
|
|
|
|
|
|
- if (!ycgl1Datas.isEmpty()) {
|
|
|
+/***************************************************************短期功率预测***************************************************************************/
|
|
|
+ WindPowerStationTestingPoint2 dqgl1 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycDqPoints1[0]);
|
|
|
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
- if (ycmap.containsKey("cdq1")) {
|
|
|
- String qs3_ycgl1 = (String) ycmap.get("cdq1");
|
|
|
+ if (null != dqgl1) {
|
|
|
+ List<PointData> datas = realApiUtil.getHistoryDatasSnap(dqgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
+ if (!datas.isEmpty()) {
|
|
|
+
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
+ if (ycmap.containsKey("dq1")) {
|
|
|
+ String qs3_ycgl1 = (String) ycmap.get("dq1");
|
|
|
|
|
|
- List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
+ List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
|
|
|
- for (int j = 0; j < ycgl1Datas.size(); j++) {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(ycgl1Datas.get(j).getPointTime() * 1000);
|
|
|
- vos.get(j).setValue4(StringUtils.round(ycgl1Datas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
- if (j == ycgl1Datas.size() - 1) {
|
|
|
- cal.setTime(new Date(ycgl1Datas.get(j).getPointTime() * 1000));
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
+ vos.get(j).setValue7(StringUtils.round(datas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- } else {
|
|
|
- for (int j = 0; j < ycgl1Datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(ycgl1Datas.get(j).getPointTime() * 1000);
|
|
|
+ } else {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
+
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
|
|
|
- double ycgl = (vos.get(j).getValue4() == null ? 0.0 : vos.get(j).getValue4()) + (ycgl1Datas.get(j) == null ? 0.0 : ycgl1Datas.get(j).getPointValueInDouble());
|
|
|
+ double ycgl = (vos.get(j).getValue7() == null ? 0.0 : vos.get(j).getValue7()) + (datas.get(j) == null ? 0.0 : datas.get(j).getPointValueInDouble());
|
|
|
|
|
|
- vos.get(j).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+ vos.get(j).setValue7(StringUtils.round(ycgl, 2));
|
|
|
|
|
|
- if (j == ycgl1Datas.size() - 1) {
|
|
|
- cal.setTime(new Date(ycgl1Datas.get(j).getPointTime() * 1000));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- int subresult = 0;
|
|
|
- int total = 0;
|
|
|
|
|
|
- if (length > ycgl1Datas.size()) {
|
|
|
- subresult = length - ycgl1Datas.size();
|
|
|
- if (subresult >= cdqyc) {
|
|
|
- subresult = cdqyc;
|
|
|
- }
|
|
|
+ int subresult = 0;
|
|
|
+ int total = 0;
|
|
|
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
- if (ycmap.containsKey("cdq2")) {
|
|
|
- String[] ycPoints3 = (String[]) ycmap.get("cdq2");
|
|
|
- for (int i = 0; i < subresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(ycgl1Datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
- String qs3_ycgl = ycPoints3[i];
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints2[i]);
|
|
|
+ if (length > datas.size()) {
|
|
|
+ subresult = length - datas.size();
|
|
|
+ if (subresult >= dqyc) {
|
|
|
+ subresult = dqyc;
|
|
|
+ }
|
|
|
|
|
|
- vos.get(ycgl1Datas.size() + i).setValue4(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(station.getId())) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(station.getId());
|
|
|
+ if (ycmap.containsKey("dq2")) {
|
|
|
+ String[] ycPoints3 = (String[]) ycmap.get("dq2");
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ //vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+ String qs3_ycgl = ycPoints3[i];
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycDqPoints2[i]);
|
|
|
+
|
|
|
+ vos.get(datas.size() + i).setValue7(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- } else {
|
|
|
- for (int i = 0; i < subresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(ycgl1Datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycPoints2[i]);
|
|
|
+ } else {
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ //vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(station.getId(), ycDqPoints2[i]);
|
|
|
|
|
|
- double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
+ double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
|
|
|
- ycgl = (vos.get(ycgl1Datas.size() + i).getValue4() == null ? 0.0 : vos.get(ycgl1Datas.size() + i).getValue4()) + ycgl;
|
|
|
+ ycgl = (vos.get(datas.size() + i).getValue7() == null ? 0.0 : vos.get(datas.size() + i).getValue7()) + ycgl;
|
|
|
|
|
|
- vos.get(ycgl1Datas.size() + i).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+ vos.get(datas.size() + i).setValue7(StringUtils.round(ycgl, 2));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
|
|
- total = ycgl1Datas.size() + subresult;
|
|
|
- subresult = length - (total);
|
|
|
+// total = datas.size() + subresult;
|
|
|
+// subresult = length - (total);
|
|
|
+//
|
|
|
+// if (subresult > 0)
|
|
|
+// for (int i = 0; i < subresult; i++) {
|
|
|
+// cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+// vos.get(total + i).setTime(cal.getTime().getTime());
|
|
|
+// vos.get(total + i).setValue4(null);
|
|
|
+// }
|
|
|
+ }
|
|
|
|
|
|
- if (subresult > 0)
|
|
|
- for (int i = 0; i < subresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(total + i).setTime(cal.getTime().getTime());
|
|
|
- vos.get(total + i).setValue4(null);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+/***************************************************************短期功率预测***************************************************************************/
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -566,185 +582,196 @@ public class RealPowerPushService {
|
|
|
|
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
|
if (num > 0) {
|
|
|
+ /***************************************************************超短期功率预测***************************************************************************/
|
|
|
WindPowerStationTestingPoint2 ycgl1 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints1[0]);
|
|
|
|
|
|
- WindPowerStationTestingPoint2 dqycgl1 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints4[0]);
|
|
|
-
|
|
|
- List<PointData> ycgl1Datas = null;
|
|
|
- List<PointData> dqycglDatas = null;
|
|
|
if (null != ycgl1) {
|
|
|
- ycgl1Datas = realApiUtil.getHistoryDatasSnap(ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
- }
|
|
|
- if (null != dqycgl1) {
|
|
|
- dqycglDatas = realApiUtil.getHistoryDatasSnap(ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried72);
|
|
|
- }
|
|
|
+ List<PointData> datas = realApiUtil.getHistoryDatasSnap(ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
+ if (!datas.isEmpty()) {
|
|
|
|
|
|
- if (!dqycglDatas.isEmpty()){
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
- if (ycmap.containsKey("dq1")) {
|
|
|
- String qs3_dq_ycgl1 = (String) ycmap.get("dq1");
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
+ if (ycmap.containsKey("cdq1")) {
|
|
|
+ String qs3_ycgl1 = (String) ycmap.get("cdq1");
|
|
|
|
|
|
- List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_dq_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num/2, pried72);
|
|
|
+ List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
|
|
|
- for (int j = 0; j < dqycglDatas.size(); j++) {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(dqycglDatas.get(j).getPointTime() * 1000);
|
|
|
- vos.get(j).setValue8(StringUtils.round(dqycglDatas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
- if (j == dqycglDatas.size() - 1) {
|
|
|
- cal.setTime(new Date(dqycglDatas.get(j).getPointTime() * 1000));
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
+ vos.get(j).setValue4(StringUtils.round(datas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- }else {
|
|
|
- for (int j = 0; j < dqycglDatas.size(); j++) {
|
|
|
+ } else {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(dqycglDatas.get(j).getPointTime() * 1000);
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
|
|
|
- double ycgl = (vos.get(j).getValue4() == null ? 0.0 : vos.get(j).getValue4()) + (dqycglDatas.get(j) == null ? 0.0 : dqycglDatas.get(j).getPointValueInDouble());
|
|
|
+ double ycgl = (vos.get(j).getValue4() == null ? 0.0 : vos.get(j).getValue4()) + (datas.get(j) == null ? 0.0 : datas.get(j).getPointValueInDouble());
|
|
|
|
|
|
- vos.get(j).setValue8(StringUtils.round(ycgl, 2));
|
|
|
+ vos.get(j).setValue4(StringUtils.round(ycgl, 2));
|
|
|
|
|
|
- if (j == dqycglDatas.size() - 1) {
|
|
|
- cal.setTime(new Date(dqycglDatas.get(j).getPointTime() * 1000));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- int dqsubresult = 0;
|
|
|
- int dqtotal = 0;
|
|
|
+ int subresult = 0;
|
|
|
+ int total = 0;
|
|
|
|
|
|
- if (length > dqycglDatas.size()) {
|
|
|
- dqsubresult = length - dqycglDatas.size();
|
|
|
+ if (length > datas.size()) {
|
|
|
+ subresult = length - datas.size();
|
|
|
+ if (subresult >= cdqyc) {
|
|
|
+ subresult = cdqyc;
|
|
|
+ }
|
|
|
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
- if (ycmap.containsKey("dq2")) {
|
|
|
- String[] ycPoints3 = (String[]) ycmap.get("dq2");
|
|
|
- for (int i = 0; i < dqsubresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(dqycglDatas.size() + i).setTime(cal.getTime().getTime());
|
|
|
- String qs3_ycgl = ycPoints3[i];
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints5[i]);
|
|
|
- vos.get(dqycglDatas.size() + i).setValue8(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
+ if (ycmap.containsKey("cdq2")) {
|
|
|
+ String[] ycPoints3 = (String[]) ycmap.get("cdq2");
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+ String qs3_ycgl = ycPoints3[i];
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints2[i]);
|
|
|
+
|
|
|
+ vos.get(datas.size() + i).setValue4(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- }else {
|
|
|
- for (int i = 0; i < dqsubresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(dqycglDatas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+ } else {
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints5[i]);
|
|
|
+ vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
|
|
|
- double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints2[i]);
|
|
|
|
|
|
- ycgl = (vos.get(dqycglDatas.size() + i).getValue8() == null ? 0.0 : vos.get(dqycglDatas.size() + i).getValue8()) + ycgl;
|
|
|
+ double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
|
|
|
- vos.get(dqycglDatas.size() + i).setValue8(StringUtils.round(ycgl, 2));
|
|
|
+ ycgl = (vos.get(datas.size() + i).getValue4() == null ? 0.0 : vos.get(datas.size() + i).getValue4()) + ycgl;
|
|
|
+
|
|
|
+ vos.get(datas.size() + i).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ total = datas.size() + subresult;
|
|
|
+ subresult = length - (total);
|
|
|
+
|
|
|
+ if (subresult > 0)
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ vos.get(total + i).setTime(cal.getTime().getTime());
|
|
|
+ vos.get(total + i).setValue4(null);
|
|
|
+ }
|
|
|
}
|
|
|
- dqtotal = dqycglDatas.size() + dqsubresult;
|
|
|
- dqsubresult = length - dqtotal;
|
|
|
-
|
|
|
- if (dqsubresult > 0)
|
|
|
- for (int i = 0; i < dqsubresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(dqtotal + i).setTime(cal.getTime().getTime());
|
|
|
- vos.get(dqtotal + i).setValue8(null);
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
+/***************************************************************超短期功率预测***************************************************************************/
|
|
|
|
|
|
|
|
|
+/***************************************************************短期功率预测***************************************************************************/
|
|
|
+ WindPowerStationTestingPoint2 dqgl1 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycDqPoints1[0]);
|
|
|
|
|
|
- if (!ycgl1Datas.isEmpty()) {
|
|
|
+ if (null != dqgl1) {
|
|
|
+ List<PointData> datas = realApiUtil.getHistoryDatasSnap(dqgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
+ if (!datas.isEmpty()) {
|
|
|
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
- if (ycmap.containsKey("cdq1")) {
|
|
|
- String qs3_ycgl1 = (String) ycmap.get("cdq1");
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
+ if (ycmap.containsKey("dq1")) {
|
|
|
+ String qs3_ycgl1 = (String) ycmap.get("dq1");
|
|
|
|
|
|
- List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
+ List<PointData> qs3_datas = realApiUtil.getHistoryDatasSnap(qs3_ycgl1, beginDate.getTime() / 1000, endDate.getTime() / 1000, num, pried);
|
|
|
|
|
|
- for (int j = 0; j < ycgl1Datas.size(); j++) {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(ycgl1Datas.get(j).getPointTime() * 1000);
|
|
|
- vos.get(j).setValue4(StringUtils.round(ycgl1Datas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
- if (j == ycgl1Datas.size() - 1) {
|
|
|
- cal.setTime(new Date(ycgl1Datas.get(j).getPointTime() * 1000));
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
+ vos.get(j).setValue7(StringUtils.round(datas.get(j).getPointValueInDouble() + qs3_datas.get(j).getPointValueInDouble(), 2));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- } else {
|
|
|
- for (int j = 0; j < ycgl1Datas.size(); j++) {
|
|
|
+ } else {
|
|
|
+ for (int j = 0; j < datas.size(); j++) {
|
|
|
|
|
|
- vos.get(j).setTime(ycgl1Datas.get(j).getPointTime() * 1000);
|
|
|
+// vos.get(j).setTime(datas.get(j).getPointTime() * 1000);
|
|
|
|
|
|
- double ycgl = (vos.get(j).getValue4() == null ? 0.0 : vos.get(j).getValue4()) + (ycgl1Datas.get(j) == null ? 0.0 : ycgl1Datas.get(j).getPointValueInDouble());
|
|
|
+ double ycgl = (vos.get(j).getValue7() == null ? 0.0 : vos.get(j).getValue7()) + (datas.get(j) == null ? 0.0 : datas.get(j).getPointValueInDouble());
|
|
|
|
|
|
- vos.get(j).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+ vos.get(j).setValue7(StringUtils.round(ycgl, 2));
|
|
|
|
|
|
- if (j == ycgl1Datas.size() - 1) {
|
|
|
- cal.setTime(new Date(ycgl1Datas.get(j).getPointTime() * 1000));
|
|
|
+ if (j == datas.size() - 1) {
|
|
|
+ cal.setTime(new Date(datas.get(j).getPointTime() * 1000));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- int subresult = 0;
|
|
|
- int total = 0;
|
|
|
+ int subresult = 0;
|
|
|
+ int total = 0;
|
|
|
|
|
|
- if (length > ycgl1Datas.size()) {
|
|
|
- subresult = length - ycgl1Datas.size();
|
|
|
- if (subresult >= cdqyc) {
|
|
|
- subresult = cdqyc;
|
|
|
- }
|
|
|
-
|
|
|
- if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
- Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
- if (ycmap.containsKey("cdq2")) {
|
|
|
- String[] ycPoints3 = (String[]) ycmap.get("cdq2");
|
|
|
- for (int i = 0; i < subresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(ycgl1Datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
- String qs3_ycgl = ycPoints3[i];
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints2[i]);
|
|
|
+ if (length > datas.size()) {
|
|
|
+ subresult = length - datas.size();
|
|
|
+ if (subresult >= dqyc) {
|
|
|
+ subresult = dqyc;
|
|
|
+ }
|
|
|
|
|
|
- vos.get(ycgl1Datas.size() + i).setValue4(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ if (InitialRunner.appendYcglMap.containsKey(id)) {
|
|
|
+ Map<String, Object> ycmap = InitialRunner.appendYcglMap.get(id);
|
|
|
+ if (ycmap.containsKey("dq2")) {
|
|
|
+ String[] ycPoints3 = (String[]) ycmap.get("dq2");
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+ vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+ String qs3_ycgl = ycPoints3[i];
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycDqPoints2[i]);
|
|
|
+
|
|
|
+ vos.get(datas.size() + i).setValue7(StringUtils.round(realApiUtil.getRealData(ycglpoint).getPointValueInDouble() + realApiUtil.getRealData(qs3_ycgl).getPointValueInDouble(), 2));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- } else {
|
|
|
- for (int i = 0; i < subresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
+ } else {
|
|
|
+ for (int i = 0; i < subresult; i++) {
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
|
|
|
- vos.get(ycgl1Datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
+ vos.get(datas.size() + i).setTime(cal.getTime().getTime());
|
|
|
|
|
|
- WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycPoints2[i]);
|
|
|
+ WindPowerStationTestingPoint2 ycglpoint = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(id, ycDqPoints2[i]);
|
|
|
|
|
|
- double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
+ double ycgl = realApiUtil.getRealData(ycglpoint).getPointValueInDouble();
|
|
|
|
|
|
- ycgl = (vos.get(ycgl1Datas.size() + i).getValue4() == null ? 0.0 : vos.get(ycgl1Datas.size() + i).getValue4()) + ycgl;
|
|
|
+ ycgl = (vos.get(datas.size() + i).getValue7() == null ? 0.0 : vos.get(datas.size() + i).getValue7()) + ycgl;
|
|
|
|
|
|
- vos.get(ycgl1Datas.size() + i).setValue4(StringUtils.round(ycgl, 2));
|
|
|
+ vos.get(datas.size() + i).setValue7(StringUtils.round(ycgl, 2));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
- total = ycgl1Datas.size() + subresult;
|
|
|
- subresult = length - (total);
|
|
|
+//
|
|
|
+// total = datas.size() + subresult;
|
|
|
+// subresult = length - (total);
|
|
|
+//
|
|
|
+// if (subresult > 0)
|
|
|
+// for (int i = 0; i < subresult; i++) {
|
|
|
+// cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
+// vos.get(total + i).setTime(cal.getTime().getTime());
|
|
|
+// vos.get(total + i).setValue7(null);
|
|
|
+// }
|
|
|
+ }
|
|
|
|
|
|
- if (subresult > 0)
|
|
|
- for (int i = 0; i < subresult; i++) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
- vos.get(total + i).setTime(cal.getTime().getTime());
|
|
|
- vos.get(total + i).setValue4(null);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+/***************************************************************短期功率预测***************************************************************************/
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -797,7 +824,7 @@ public class RealPowerPushService {
|
|
|
}
|
|
|
|
|
|
if (!InitialRunner.wpmap.containsKey(id)) {
|
|
|
- cal.add(Calendar.HOUR, 1);
|
|
|
+ cal.add(Calendar.HOUR_OF_DAY, 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -959,9 +986,6 @@ public class RealPowerPushService {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public List<Object> findGLDetail(String id, String gltype) throws Exception {
|
|
|
|
|
|
List<DataVo> vols = new ArrayList<DataVo>();
|
|
@@ -981,7 +1005,7 @@ public class RealPowerPushService {
|
|
|
|
|
|
int type = 0;
|
|
|
|
|
|
- // Map<String, List> resultMap = new HashMap<String, List>();
|
|
|
+ // Map<String, List> resultMap = new HashMap<String, List>();
|
|
|
|
|
|
List<Object> resultls = new ArrayList<Object>();
|
|
|
if (StringUtils.notEmp(id)) {
|
|
@@ -1075,7 +1099,7 @@ public class RealPowerPushService {
|
|
|
}
|
|
|
break;
|
|
|
case "yfgl":
|
|
|
- // 总应发功率
|
|
|
+ // 总应发功率
|
|
|
WindPowerStationTestingPoint2 yfgl = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(vo.getId(), Constant.TPOINT_WP_ZZSGL);
|
|
|
if(null!=yfgl && null!=yfgl.getCode())
|
|
|
{
|
|
@@ -1083,7 +1107,7 @@ public class RealPowerPushService {
|
|
|
}
|
|
|
break;
|
|
|
case "ssfs":
|
|
|
- //实时平均风速
|
|
|
+ //实时平均风速
|
|
|
WindPowerStationTestingPoint2 ssfs = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(vo.getId(), Constant.TPOINT_WP_SSFS);
|
|
|
if(null!=ssfs && null!=ssfs.getCode())
|
|
|
{
|
|
@@ -1162,7 +1186,7 @@ public class RealPowerPushService {
|
|
|
}
|
|
|
|
|
|
// resultMap.put(vo.getId(), vos);
|
|
|
- resultls.add(vos);
|
|
|
+ resultls.add(vos);
|
|
|
}
|
|
|
|
|
|
}
|