|
@@ -65,10 +65,10 @@ public class EquipmentInfo1ThreadPool implements Callable<String>, Serializable
|
|
|
|
|
|
|
|
|
try {
|
|
|
- if(wt.getId().equals("SXJ_KGDL_BHB_F_WT_0005_EQ"))
|
|
|
- {
|
|
|
- System.out.println("");
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if(CacheContext.wtpAimap.containsKey(wt.getId()))
|
|
|
{
|
|
|
Map<String, ProBasicEquipmentPoint> pointmap=CacheContext.wtpAimap.get(wt.getId());
|
|
@@ -466,26 +466,77 @@ public class EquipmentInfo1ThreadPool implements Callable<String>, Serializable
|
|
|
}else
|
|
|
{
|
|
|
|
|
|
+ if(pewp.getWindpowerstationId().contains(WpType.FDC.id))
|
|
|
+ {
|
|
|
+
|
|
|
+ if(pointmap.containsKey(ContantXk.YPJFS))
|
|
|
+ {
|
|
|
+ ProBasicEquipmentPoint point= pointmap.get(ContantXk.YPJFS);
|
|
|
+ List<PointData> pointls=edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime()/1000, end.getTime()/1000);
|
|
|
|
|
|
+ pointls = pointls.stream().filter(n -> (n.getPointValueInDouble() >0 && n.getPointValueInDouble() <30)).collect(Collectors.toList());
|
|
|
+
|
|
|
+ if(!pointls.isEmpty())
|
|
|
+ {
|
|
|
+ DoubleSummaryStatistics summaryStatistics=pointls.stream().mapToDouble(PointData::getPointValueInDouble).summaryStatistics();
|
|
|
+
|
|
|
+ if(summaryStatistics.getMax()>30)
|
|
|
+ {
|
|
|
+ pewp.setYzdfs(StringUtils.round(25,2));
|
|
|
+
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ pewp.setYzdfs(StringUtils.round(summaryStatistics.getMax(),2));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(summaryStatistics.getMin()<0)
|
|
|
+ {
|
|
|
+ pewp.setYzxfs(StringUtils.round(0,2));
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ pewp.setYzxfs(StringUtils.round(summaryStatistics.getMin(),2));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if(summaryStatistics.getAverage()>30)
|
|
|
+ {
|
|
|
+ pewp.setYpjfs(StringUtils.round(25,2));
|
|
|
+ }else if(summaryStatistics.getAverage()<0)
|
|
|
+ {
|
|
|
+ pewp.setYpjfs(StringUtils.round(0,2));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ pewp.setYpjfs(StringUtils.round(summaryStatistics.getAverage(),2));
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- if(pointmap.containsKey(ContantXk.YPJFS))
|
|
|
+ }
|
|
|
+ }else
|
|
|
{
|
|
|
- ProBasicEquipmentPoint point= pointmap.get(ContantXk.YPJFS);
|
|
|
- List<PointData> pointls=edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime()/1000, end.getTime()/1000);
|
|
|
- if(!pointls.isEmpty())
|
|
|
+
|
|
|
+ if(pointmap.containsKey(ContantXk.YPJGZD))
|
|
|
{
|
|
|
- DoubleSummaryStatistics summaryStatistics=pointls.stream().mapToDouble(PointData::getPointValueInDouble).summaryStatistics();
|
|
|
-
|
|
|
- pewp.setYzdfs(StringUtils.round(summaryStatistics.getMax(),2));
|
|
|
+ ProBasicEquipmentPoint point= pointmap.get(ContantXk.YPJGZD);
|
|
|
+ List<PointData> pointls=edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime()/1000, end.getTime()/1000);
|
|
|
+ if(!pointls.isEmpty())
|
|
|
+ {
|
|
|
+ DoubleSummaryStatistics summaryStatistics=pointls.stream().mapToDouble(PointData::getPointValueInDouble).summaryStatistics();
|
|
|
+
|
|
|
+ pewp.setYzdfs(StringUtils.round(summaryStatistics.getMax(),2));
|
|
|
+
|
|
|
+ pewp.setYzxfs(StringUtils.round(summaryStatistics.getMin(),2));
|
|
|
+
|
|
|
+ pewp.setYpjfs(StringUtils.round(summaryStatistics.getAverage(),2));
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
- pewp.setYzxfs(StringUtils.round(summaryStatistics.getMin(),2));
|
|
|
-
|
|
|
- pewp.setYpjfs(StringUtils.round(summaryStatistics.getAverage(),2));
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
if(pointmap.containsKey(ContantXk.YPJGL))
|
|
|
{
|
|
|
ProBasicEquipmentPoint point= pointmap.get(ContantXk.YPJGL);
|
|
@@ -767,25 +818,76 @@ public class EquipmentInfo1ThreadPool implements Callable<String>, Serializable
|
|
|
}else
|
|
|
{
|
|
|
|
|
|
- if(pointmap.containsKey(ContantXk.NPJFS))
|
|
|
+ if(pewp.getWindpowerstationId().contains(WpType.FDC.id))
|
|
|
{
|
|
|
- ProBasicEquipmentPoint point= pointmap.get(ContantXk.NPJFS);
|
|
|
- List<PointData> pointls=edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime()/1000, end.getTime()/1000);
|
|
|
- if(!pointls.isEmpty())
|
|
|
+
|
|
|
+ if(pointmap.containsKey(ContantXk.NPJFS))
|
|
|
{
|
|
|
- DoubleSummaryStatistics summaryStatistics=pointls.stream().mapToDouble(PointData::getPointValueInDouble).summaryStatistics();
|
|
|
-
|
|
|
- pewp.setNzdfs(StringUtils.round(summaryStatistics.getMax(),2));
|
|
|
+ ProBasicEquipmentPoint point= pointmap.get(ContantXk.NPJFS);
|
|
|
+ List<PointData> pointls=edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime()/1000, end.getTime()/1000);
|
|
|
+
|
|
|
+ pointls = pointls.stream().filter(n -> (n.getPointValueInDouble() >0 && n.getPointValueInDouble() <30)).collect(Collectors.toList());
|
|
|
|
|
|
-
|
|
|
+ if(!pointls.isEmpty())
|
|
|
+ {
|
|
|
+ DoubleSummaryStatistics summaryStatistics=pointls.stream().mapToDouble(PointData::getPointValueInDouble).summaryStatistics();
|
|
|
+
|
|
|
+ if(summaryStatistics.getMax()>30)
|
|
|
+ {
|
|
|
+ pewp.setNzdfs(StringUtils.round(25,2));
|
|
|
+
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ pewp.setNzdfs(StringUtils.round(summaryStatistics.getMax(),2));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(summaryStatistics.getMin()<0)
|
|
|
+ {
|
|
|
+ pewp.setNzxfs(StringUtils.round(0,2));
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ pewp.setNzxfs(StringUtils.round(summaryStatistics.getMin(),2));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if(summaryStatistics.getAverage()>30)
|
|
|
+ {
|
|
|
+ pewp.setNpjfs(StringUtils.round(25,2));
|
|
|
+ }else if(summaryStatistics.getAverage()<0)
|
|
|
+ {
|
|
|
+ pewp.setNpjfs(StringUtils.round(0,2));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ pewp.setNpjfs(StringUtils.round(summaryStatistics.getAverage(),2));
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- pewp.setNzxfs(StringUtils.round(summaryStatistics.getMin(),2));
|
|
|
-
|
|
|
- pewp.setNpjfs(StringUtils.round(summaryStatistics.getAverage(),2));
|
|
|
}
|
|
|
+ }else
|
|
|
+ {
|
|
|
+
|
|
|
+ if(pointmap.containsKey(ContantXk.NPJGZD))
|
|
|
+ {
|
|
|
+ ProBasicEquipmentPoint point= pointmap.get(ContantXk.NPJGZD);
|
|
|
+ List<PointData> pointls=edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime()/1000, end.getTime()/1000);
|
|
|
+ if(!pointls.isEmpty())
|
|
|
+ {
|
|
|
+ DoubleSummaryStatistics summaryStatistics=pointls.stream().mapToDouble(PointData::getPointValueInDouble).summaryStatistics();
|
|
|
+
|
|
|
+ pewp.setNzdfs(StringUtils.round(summaryStatistics.getMax(),2));
|
|
|
+
|
|
|
+ pewp.setNzxfs(StringUtils.round(summaryStatistics.getMin(),2));
|
|
|
+
|
|
|
+ pewp.setNpjfs(StringUtils.round(summaryStatistics.getAverage(),2));
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if(pointmap.containsKey(ContantXk.NPJGL))
|
|
|
{
|
|
|
ProBasicEquipmentPoint point= pointmap.get(ContantXk.NPJGL);
|