|
@@ -2147,6 +2147,12 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
//风速
|
|
|
List<PointInfo> entityFs = getEntity("AI066", "turbine");
|
|
|
getSnapDataByEntity(entityFs, begin, end, 15);
|
|
|
+ for (PointInfo entityF : entityFs) {
|
|
|
+ List<PointData> dataList = entityF.getPointDatas().stream().filter(pd -> pd.getValue() > 20).collect(Collectors.toList());
|
|
|
+ if (dataList.size() > 0) {
|
|
|
+ System.out.println();
|
|
|
+ }
|
|
|
+ }
|
|
|
Map<String, Map<String, List<PointData>>> fsMapMap = entityFs.stream().collect(Collectors.groupingBy(PointInfo::getStationId,
|
|
|
Collectors.toMap(PointInfo::getTurbineId, PointInfo::getPointDatas)));
|
|
|
//功率
|
|
@@ -2218,7 +2224,7 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
tid.setDjss(tid.getDjss() * zssXs);
|
|
|
tid.setGzss(tid.getGzss() * zssXs);
|
|
|
});
|
|
|
- turbineInfoMinService.saveOrUpdateBatch(dayMap.values());
|
|
|
+ //turbineInfoMinService.saveOrUpdateBatch(dayMap.values());
|
|
|
}
|
|
|
|
|
|
public void calcStation5s(DateTime begin, DateTime end) {
|
|
@@ -2327,7 +2333,7 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
});
|
|
|
//turbineInfoDayService.saveOrUpdateBatch(byDate);
|
|
|
PointData data = new PointData(end.getTime(), NumberUtil.round(sum, 4).doubleValue());
|
|
|
- data.setTagName("区域集控.惠安风场.统计计算.总日限电量");
|
|
|
+ data.setTagName("区域集控.惠安风场.光耀计算.日限电量");
|
|
|
adapter.writeHistoryBatch(mqttUri(), Collections.singletonList(data));
|
|
|
}
|
|
|
|