|
@@ -1242,6 +1242,10 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
ConcurrentHashMap<String, ConcurrentHashMap<String, Double>> mapOut = new ConcurrentHashMap<>();
|
|
|
|
|
|
|
|
|
+
|
|
|
+ List<TurbineInfoDay > interest = new ArrayList<>();
|
|
|
+
|
|
|
+ List<TurbineInfoDay > update = new ArrayList<>();
|
|
|
|
|
|
for (PointInfo turbine : turbineZt) {
|
|
|
|
|
@@ -1373,14 +1377,25 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
turbineInfoDay.setRecordDate(timeBegin.toJdkDate());
|
|
|
turbineInfoDay.setXfqrfs(avgCutInWindSpeed);
|
|
|
System.out.println(turbineInfoDay);
|
|
|
- turbineInfoDayService.save(turbineInfoDay);
|
|
|
+
|
|
|
+ interest.add(turbineInfoDay);
|
|
|
+
|
|
|
} else {
|
|
|
one.setXfqrfs(avgCutInWindSpeed);
|
|
|
System.out.println(one);
|
|
|
- turbineInfoDayService.updateById(one);
|
|
|
+
|
|
|
+ update.add(one);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1422,6 +1437,14 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
|
|
|
|
|
|
int i = 0;
|
|
|
+
|
|
|
+
|
|
|
+ List<TurbineInfoDay > interest = new ArrayList<>();
|
|
|
+
|
|
|
+ List<TurbineInfoDay > update = new ArrayList<>();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
for (PointInfo ef : entityFs) {
|
|
|
String wtId = ef.getTurbineId();
|
|
|
PointInfo glInfo = glMap.get(wtId);
|
|
@@ -1491,11 +1514,13 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
turbineInfoDay.setRecordDate(start);
|
|
|
turbineInfoDay.setEdfs(agValue);
|
|
|
System.out.println(turbineInfoDay);
|
|
|
- turbineInfoDayService.save(turbineInfoDay);
|
|
|
+
|
|
|
+ interest.add(turbineInfoDay);
|
|
|
} else {
|
|
|
one.setEdfs(agValue);
|
|
|
System.out.println(one);
|
|
|
- turbineInfoDayService.updateById(one);
|
|
|
+
|
|
|
+ update.add(one);
|
|
|
}
|
|
|
|
|
|
}catch (Exception e) {
|
|
@@ -1506,6 +1531,18 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|