|
@@ -69,9 +69,7 @@ public class AverageAndGeneratingService {
|
|
|
wpls.stream().forEach(wp->{
|
|
|
List<Project> projects = wppromap.get(wp.getId());
|
|
|
Map<String, Windpowerstationpointnew> wppointnewmap = wppointmap.get(wp.getId());
|
|
|
- Windpowerstationpointnew wppointnew = wppointnewmap.get(Contant.RPJFS);
|
|
|
- Windpowerstationpointnew ywppointnew = wppointnewmap.get(Contant.YPJFS);
|
|
|
- Windpowerstationpointnew nwppointnew = wppointnewmap.get(Contant.NPJFS);
|
|
|
+
|
|
|
Windpowerstationpointnew powerwppointnew = wppointnewmap.get(Contant.RPJGL);
|
|
|
Windpowerstationpointnew ypowerwppointnew = wppointnewmap.get(Contant.YPJGL);
|
|
|
Windpowerstationpointnew npowerwppointnew = wppointnewmap.get(Contant.NPJGL);
|
|
@@ -79,9 +77,7 @@ public class AverageAndGeneratingService {
|
|
|
Windpowerstationpointnew yfdlwppointnew = wppointnewmap.get(Contant.YFDL);
|
|
|
Windpowerstationpointnew nfdlwppointnew = wppointnewmap.get(Contant.NFDL);
|
|
|
Windpowerstationpointnew fnlylwppointnew = wppointnewmap.get(Contant.FNLYL);
|
|
|
- List<PointData> projectavespeedList = new ArrayList<>();
|
|
|
- List<PointData> yprojectavespeedList = new ArrayList<>();
|
|
|
- List<PointData> nprojectavespeedList = new ArrayList<>();
|
|
|
+
|
|
|
List<PointData> projectavepowerList = new ArrayList<>();
|
|
|
List<PointData> yprojectavepowerList = new ArrayList<>();
|
|
|
List<PointData> nprojectavepowerList = new ArrayList<>();
|
|
@@ -91,9 +87,7 @@ public class AverageAndGeneratingService {
|
|
|
projects.stream().forEach(project -> {
|
|
|
List<Line> lines = prolinemap.get(project.getId());
|
|
|
Map<String, Windpowerstationpointnew> projectpointnewmap = propointmap.get(project.getId());
|
|
|
- Windpowerstationpointnew projectpointnew = projectpointnewmap.get(Contant.RPJFS);
|
|
|
- Windpowerstationpointnew yprojectpointnew = projectpointnewmap.get(Contant.YPJFS);
|
|
|
- Windpowerstationpointnew nprojectpointnew = projectpointnewmap.get(Contant.NPJFS);
|
|
|
+
|
|
|
Windpowerstationpointnew powerprojectpointnew = projectpointnewmap.get(Contant.RPJGL);
|
|
|
Windpowerstationpointnew ypowerprojectpointnew = projectpointnewmap.get(Contant.YPJGL);
|
|
|
Windpowerstationpointnew npowerprojectpointnew = projectpointnewmap.get(Contant.NPJGL);
|
|
@@ -101,9 +95,7 @@ public class AverageAndGeneratingService {
|
|
|
Windpowerstationpointnew yfdlprojectpointnew = projectpointnewmap.get(Contant.YFDL);
|
|
|
Windpowerstationpointnew nfdlprojectpointnew = projectpointnewmap.get(Contant.NFDL);
|
|
|
Windpowerstationpointnew fnlylprojectpointnew = projectpointnewmap.get(Contant.FNLYL);
|
|
|
- List<PointData> lineavespeedList = new ArrayList<>();
|
|
|
- List<PointData> ylineavespeedList = new ArrayList<>();
|
|
|
- List<PointData> nlineavespeedList = new ArrayList<>();
|
|
|
+
|
|
|
List<PointData> lineavepowerList = new ArrayList<>();
|
|
|
List<PointData> ylineavepowerList = new ArrayList<>();
|
|
|
List<PointData> nlineavepowerList = new ArrayList<>();
|
|
@@ -111,212 +103,161 @@ public class AverageAndGeneratingService {
|
|
|
List<PointData> ylinefdlList = new ArrayList<>();
|
|
|
List<PointData> nlinefdlList = new ArrayList<>();
|
|
|
lines.stream().forEach(line -> {
|
|
|
- List<Inverter> windturbines = linewtmap.get(line.getId());
|
|
|
- Map<String, Windpowerstationpointnew> linepointnewmap = linepointmap.get(line.getId());
|
|
|
- Windpowerstationpointnew linepointnew = linepointnewmap.get(Contant.RPJFS);
|
|
|
- Windpowerstationpointnew ylinepointnew = linepointnewmap.get(Contant.YPJFS);
|
|
|
- Windpowerstationpointnew nlinepointnew = linepointnewmap.get(Contant.NPJFS);
|
|
|
- Windpowerstationpointnew linepowerpointnew = linepointnewmap.get(Contant.RPJGL);
|
|
|
- Windpowerstationpointnew ylinepowerpointnew = linepointnewmap.get(Contant.YPJGL);
|
|
|
- Windpowerstationpointnew nlinepowerpointnew = linepointnewmap.get(Contant.NPJGL);
|
|
|
- Windpowerstationpointnew linefdlpointnew = linepointnewmap.get(Contant.RFDL);
|
|
|
- Windpowerstationpointnew ylinefdlpointnew = linepointnewmap.get(Contant.YFDL);
|
|
|
- Windpowerstationpointnew nlinefdlpointnew = linepointnewmap.get(Contant.NFDL);
|
|
|
- Windpowerstationpointnew linefnlylpointnew = linepointnewmap.get(Contant.FNLYL);
|
|
|
- List<PointData> wtavespeedList = new ArrayList<>();
|
|
|
- List<PointData> ywtavespeedList = new ArrayList<>();
|
|
|
- List<PointData> nwtavespeedList = new ArrayList<>();
|
|
|
- List<PointData> wtavepowerList = new ArrayList<>();
|
|
|
- List<PointData> ywtavepowerList = new ArrayList<>();
|
|
|
- List<PointData> nwtavepowerList = new ArrayList<>();
|
|
|
- List<PointData> rfdlList = new ArrayList<>();
|
|
|
- List<PointData> yfdlList = new ArrayList<>();
|
|
|
- List<PointData> nfdlList = new ArrayList<>();
|
|
|
-
|
|
|
- windturbines.stream().forEach(wt->{
|
|
|
- Map<String, Photovoltaictestingpointnew> windturbinetestingpointnewMap = wtpAimap.get(wt.getId());
|
|
|
- Photovoltaictestingpointnew aveSpeedPoint = windturbinetestingpointnewMap.get(Contant.RPJFS);
|
|
|
- Photovoltaictestingpointnew monthAveSpeedPoint = windturbinetestingpointnewMap.get(Contant.YPJFS);
|
|
|
- Photovoltaictestingpointnew yearAveSpeedPoint = windturbinetestingpointnewMap.get(Contant.NPJFS);
|
|
|
- Photovoltaictestingpointnew fjssfs = windturbinetestingpointnewMap.get(Contant.AI022);
|
|
|
- Photovoltaictestingpointnew avePowerPoint = windturbinetestingpointnewMap.get(Contant.RPJGL);
|
|
|
- Photovoltaictestingpointnew yavePowerPoint = windturbinetestingpointnewMap.get(Contant.YPJGL);
|
|
|
- Photovoltaictestingpointnew navePowerPoint = windturbinetestingpointnewMap.get(Contant.NPJGL);
|
|
|
- Photovoltaictestingpointnew fjssgl = windturbinetestingpointnewMap.get(Contant.AI130);
|
|
|
- Photovoltaictestingpointnew ai064 = windturbinetestingpointnewMap.get(Contant.AI064);
|
|
|
- Photovoltaictestingpointnew fjfdl = windturbinetestingpointnewMap.get(Contant.RFDL);
|
|
|
- Photovoltaictestingpointnew fjyfdl = windturbinetestingpointnewMap.get(Contant.YFDL);
|
|
|
- Photovoltaictestingpointnew fjnfdl = windturbinetestingpointnewMap.get(Contant.NFDL);
|
|
|
- Photovoltaictestingpointnew ai138 = windturbinetestingpointnewMap.get(Contant.AI138);
|
|
|
- Photovoltaictestingpointnew ai139 = windturbinetestingpointnewMap.get(Contant.AI139);
|
|
|
- try {
|
|
|
- //算发电量
|
|
|
- Double rfdl = 0.0;
|
|
|
- Double yfdl = 0.0;
|
|
|
- Double nfdl = 0.0;
|
|
|
- if (direct.contains(wt.getProjectid())){
|
|
|
- rfdl = edosUtil.getSectionData(ai064,tomorrow.getTime()).getPointValueInDouble();
|
|
|
- yfdl = edosUtil.getSectionData(ai138,tomorrow.getTime()).getPointValueInDouble();
|
|
|
- nfdl = edosUtil.getSectionData(ai139,tomorrow.getTime()).getPointValueInDouble();
|
|
|
- }else{
|
|
|
- Double currentValue = 0.0;
|
|
|
- Double samedayValue = 0.0;
|
|
|
- Double monthFirstValue = 0.0;
|
|
|
- Double yearFirstValue = 0.0;
|
|
|
- PointData realData = edosUtil.getSectionData(ai064,tomorrow.getTime());
|
|
|
- currentValue = realData.getPointValueInDouble();
|
|
|
- samedayValue = edosUtil.getSectionData(ai064,samedayZero.getTime()).getPointValueInDouble();
|
|
|
- monthFirstValue = edosUtil.getSectionData(ai064,monthFirstZero.getTime()).getPointValueInDouble();
|
|
|
- yearFirstValue = edosUtil.getSectionData(ai064,yearFirstZero.getTime()).getPointValueInDouble();
|
|
|
-
|
|
|
- rfdl = currentValue - samedayValue;
|
|
|
- yfdl = currentValue - monthFirstValue;
|
|
|
- nfdl = currentValue - yearFirstValue;
|
|
|
- }
|
|
|
- PointData fdlpointData = createPointData(fjfdl, rfdl);
|
|
|
- rfdlList.add(fdlpointData);
|
|
|
-
|
|
|
- PointData yfdlpointData = createPointData(fjyfdl, yfdl);
|
|
|
-
|
|
|
- yfdlList.add(yfdlpointData);
|
|
|
-
|
|
|
- PointData nfdlpointData = createPointData(fjnfdl, nfdl);
|
|
|
- yfdlList.add(nfdlpointData);
|
|
|
- //算平均风速
|
|
|
- List<PointData> ssfsList = edosUtil.getHistStat(fjssfs, samedayZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
- Optional<PointData> ssfsFirst = ssfsList.stream().findFirst();
|
|
|
- if (ssfsFirst.isPresent()){
|
|
|
- PointData pointData = ssfsFirst.get();
|
|
|
- double inDouble = pointData.getPointValueInDouble();
|
|
|
- createWtPointData(aveSpeedPoint, pointData, inDouble);
|
|
|
- wtavespeedList.add(pointData);
|
|
|
- }
|
|
|
- //算月平均风速
|
|
|
- List<PointData> yssfsList = edosUtil.getHistStat(fjssfs, monthFirstZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
- Optional<PointData> yssfsFirst = yssfsList.stream().findFirst();
|
|
|
- if (yssfsFirst.isPresent()){
|
|
|
- PointData pointData = yssfsFirst.get();
|
|
|
- double inDouble = pointData.getPointValueInDouble();
|
|
|
- createWtPointData(monthAveSpeedPoint, pointData, inDouble);
|
|
|
- ywtavespeedList.add(pointData);
|
|
|
- }
|
|
|
- //算年平均风速
|
|
|
- List<PointData> nssfsList = edosUtil.getHistStat(fjssfs, yearFirstZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
- Optional<PointData> nssfsFirst = nssfsList.stream().findFirst();
|
|
|
- if (nssfsFirst.isPresent()){
|
|
|
- PointData pointData = nssfsFirst.get();
|
|
|
- double inDouble = pointData.getPointValueInDouble();
|
|
|
- createWtPointData(yearAveSpeedPoint, pointData, inDouble);
|
|
|
- nwtavespeedList.add(pointData);
|
|
|
- }
|
|
|
- //算平均功率
|
|
|
- List<PointData> ssglList = edosUtil.getHistStat(fjssgl, samedayZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
- Optional<PointData> ssglFirst = ssglList.stream().findFirst();
|
|
|
- if (ssglFirst.isPresent()){
|
|
|
- PointData pointData = ssglFirst.get();
|
|
|
- double inDouble = pointData.getPointValueInDouble();
|
|
|
- createWtPointData(avePowerPoint, pointData, inDouble);
|
|
|
- wtavepowerList.add(pointData);
|
|
|
- }
|
|
|
- //算月平均功率
|
|
|
- List<PointData> yssglList = edosUtil.getHistStat(fjssgl, monthFirstZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
- Optional<PointData> yssglFirst = yssglList.stream().findFirst();
|
|
|
- if (yssglFirst.isPresent()){
|
|
|
- PointData pointData = yssglFirst.get();
|
|
|
- double inDouble = pointData.getPointValueInDouble();
|
|
|
- createWtPointData(yavePowerPoint, pointData, inDouble);
|
|
|
- ywtavepowerList.add(pointData);
|
|
|
- }
|
|
|
- //算年平均功率
|
|
|
- List<PointData> nssglList = edosUtil.getHistStat(fjssgl, yearFirstZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
- Optional<PointData> nssglFirst = nssglList.stream().findFirst();
|
|
|
- if (nssglFirst.isPresent()){
|
|
|
- PointData pointData = nssglFirst.get();
|
|
|
- double inDouble = pointData.getPointValueInDouble();
|
|
|
- createWtPointData(navePowerPoint, pointData, inDouble);
|
|
|
- nwtavepowerList.add(pointData);
|
|
|
+ if (linewtmap.containsKey(line.getId())){
|
|
|
+ List<Inverter> windturbines = linewtmap.get(line.getId());
|
|
|
+ Map<String, Windpowerstationpointnew> linepointnewmap = linepointmap.get(line.getId());
|
|
|
+
|
|
|
+ Windpowerstationpointnew linepowerpointnew = linepointnewmap.get(Contant.RPJGL);
|
|
|
+ Windpowerstationpointnew ylinepowerpointnew = linepointnewmap.get(Contant.YPJGL);
|
|
|
+ Windpowerstationpointnew nlinepowerpointnew = linepointnewmap.get(Contant.NPJGL);
|
|
|
+ Windpowerstationpointnew linefdlpointnew = linepointnewmap.get(Contant.RFDL);
|
|
|
+ Windpowerstationpointnew ylinefdlpointnew = linepointnewmap.get(Contant.YFDL);
|
|
|
+ Windpowerstationpointnew nlinefdlpointnew = linepointnewmap.get(Contant.NFDL);
|
|
|
+ Windpowerstationpointnew linefnlylpointnew = linepointnewmap.get(Contant.FNLYL);
|
|
|
+
|
|
|
+ List<PointData> wtavepowerList = new ArrayList<>();
|
|
|
+ List<PointData> ywtavepowerList = new ArrayList<>();
|
|
|
+ List<PointData> nwtavepowerList = new ArrayList<>();
|
|
|
+ List<PointData> rfdlList = new ArrayList<>();
|
|
|
+ List<PointData> yfdlList = new ArrayList<>();
|
|
|
+ List<PointData> nfdlList = new ArrayList<>();
|
|
|
+
|
|
|
+ windturbines.stream().forEach(wt->{
|
|
|
+ if (wtpAimap.containsKey(wt.getId())){
|
|
|
+ Map<String, Photovoltaictestingpointnew> windturbinetestingpointnewMap = wtpAimap.get(wt.getId());
|
|
|
+
|
|
|
+ Photovoltaictestingpointnew avePowerPoint = windturbinetestingpointnewMap.get(Contant.RPJGL);
|
|
|
+ Photovoltaictestingpointnew yavePowerPoint = windturbinetestingpointnewMap.get(Contant.YPJGL);
|
|
|
+ Photovoltaictestingpointnew navePowerPoint = windturbinetestingpointnewMap.get(Contant.NPJGL);
|
|
|
+ Photovoltaictestingpointnew fjssgl = windturbinetestingpointnewMap.get(Contant.AIG013);
|
|
|
+ Photovoltaictestingpointnew ai064 = windturbinetestingpointnewMap.get(Contant.AI064);
|
|
|
+ Photovoltaictestingpointnew fjfdl = windturbinetestingpointnewMap.get(Contant.RFDL);
|
|
|
+ Photovoltaictestingpointnew fjyfdl = windturbinetestingpointnewMap.get(Contant.YFDL);
|
|
|
+ Photovoltaictestingpointnew fjnfdl = windturbinetestingpointnewMap.get(Contant.NFDL);
|
|
|
+ Photovoltaictestingpointnew ai138 = windturbinetestingpointnewMap.get(Contant.AI138);
|
|
|
+ Photovoltaictestingpointnew ai139 = windturbinetestingpointnewMap.get(Contant.AI139);
|
|
|
+ try {
|
|
|
+ //算发电量
|
|
|
+ Double rfdl = 0.0;
|
|
|
+ Double yfdl = 0.0;
|
|
|
+ Double nfdl = 0.0;
|
|
|
+ if (direct.contains(wt.getProjectid())){
|
|
|
+ rfdl = edosUtil.getSectionData(ai064,tomorrow.getTime()).getPointValueInDouble();
|
|
|
+ yfdl = edosUtil.getSectionData(ai138,tomorrow.getTime()).getPointValueInDouble();
|
|
|
+ nfdl = edosUtil.getSectionData(ai139,tomorrow.getTime()).getPointValueInDouble();
|
|
|
+ }else{
|
|
|
+ Double currentValue = 0.0;
|
|
|
+ Double samedayValue = 0.0;
|
|
|
+ Double monthFirstValue = 0.0;
|
|
|
+ Double yearFirstValue = 0.0;
|
|
|
+ PointData realData = edosUtil.getSectionData(ai064,tomorrow.getTime());
|
|
|
+ currentValue = realData.getPointValueInDouble();
|
|
|
+ samedayValue = edosUtil.getSectionData(ai064,samedayZero.getTime()).getPointValueInDouble();
|
|
|
+ monthFirstValue = edosUtil.getSectionData(ai064,monthFirstZero.getTime()).getPointValueInDouble();
|
|
|
+ yearFirstValue = edosUtil.getSectionData(ai064,yearFirstZero.getTime()).getPointValueInDouble();
|
|
|
+
|
|
|
+ rfdl = currentValue - samedayValue;
|
|
|
+ yfdl = currentValue - monthFirstValue;
|
|
|
+ nfdl = currentValue - yearFirstValue;
|
|
|
+ }
|
|
|
+ PointData fdlpointData = createPointData(fjfdl, rfdl);
|
|
|
+ rfdlList.add(fdlpointData);
|
|
|
+
|
|
|
+ PointData yfdlpointData = createPointData(fjyfdl, yfdl);
|
|
|
+
|
|
|
+ yfdlList.add(yfdlpointData);
|
|
|
+
|
|
|
+ PointData nfdlpointData = createPointData(fjnfdl, nfdl);
|
|
|
+ yfdlList.add(nfdlpointData);
|
|
|
+
|
|
|
+
|
|
|
+ //算平均功率
|
|
|
+ List<PointData> ssglList = edosUtil.getHistStat(fjssgl, samedayZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
+ Optional<PointData> ssglFirst = ssglList.stream().findFirst();
|
|
|
+ if (ssglFirst.isPresent()){
|
|
|
+ PointData pointData = ssglFirst.get();
|
|
|
+ double inDouble = pointData.getPointValueInDouble();
|
|
|
+ createWtPointData(avePowerPoint, pointData, inDouble);
|
|
|
+ wtavepowerList.add(pointData);
|
|
|
+ }
|
|
|
+ //算月平均功率
|
|
|
+ List<PointData> yssglList = edosUtil.getHistStat(fjssgl, monthFirstZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
+ Optional<PointData> yssglFirst = yssglList.stream().findFirst();
|
|
|
+ if (yssglFirst.isPresent()){
|
|
|
+ PointData pointData = yssglFirst.get();
|
|
|
+ double inDouble = pointData.getPointValueInDouble();
|
|
|
+ createWtPointData(yavePowerPoint, pointData, inDouble);
|
|
|
+ ywtavepowerList.add(pointData);
|
|
|
+ }
|
|
|
+ //算年平均功率
|
|
|
+ List<PointData> nssglList = edosUtil.getHistStat(fjssgl, yearFirstZero.getTime() / 1000, currentDate.getTime() / 1000, 1l, null, 2);
|
|
|
+ Optional<PointData> nssglFirst = nssglList.stream().findFirst();
|
|
|
+ if (nssglFirst.isPresent()){
|
|
|
+ PointData pointData = nssglFirst.get();
|
|
|
+ double inDouble = pointData.getPointValueInDouble();
|
|
|
+ createWtPointData(navePowerPoint, pointData, inDouble);
|
|
|
+ nwtavepowerList.add(pointData);
|
|
|
+ }
|
|
|
+
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ });
|
|
|
+ resultList.addAll(wtavepowerList);
|
|
|
+ resultList.addAll(ywtavepowerList);
|
|
|
+ resultList.addAll(nwtavepowerList);
|
|
|
+ resultList.addAll(rfdlList);
|
|
|
+ resultList.addAll(yfdlList);
|
|
|
+ resultList.addAll(nfdlList);
|
|
|
+ double linefdl = rfdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
+ double lineyfdl = yfdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
+ double linenfdl = nfdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
+ PointData fdlpoint = createWpPointData(linefdlpointnew, linefdl);
|
|
|
+ PointData yfdlpoint = createWpPointData(ylinefdlpointnew, lineyfdl);
|
|
|
+ PointData nfdlpoint = createWpPointData(nlinefdlpointnew, linenfdl);
|
|
|
+ linefdlList.add(fdlpoint);
|
|
|
+ ylinefdlList.add(yfdlpoint);
|
|
|
+ nlinefdlList.add(nfdlpoint);
|
|
|
+
|
|
|
+ //算风能利用率
|
|
|
+
|
|
|
+ List<String> pointList = new ArrayList<>();
|
|
|
+ double ssdl = 0;
|
|
|
+ Arrays.stream(monthbenchPoints.split(",")).forEach(code->{
|
|
|
+ pointList.add(linepointnewmap.get(code).getCode());
|
|
|
+ });
|
|
|
+ try {
|
|
|
+ List<PointData> ssdlList = edosUtil.getRealData(pointList);
|
|
|
+ ssdl = ssdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- });
|
|
|
- resultList.addAll(wtavespeedList);
|
|
|
- resultList.addAll(ywtavespeedList);
|
|
|
- resultList.addAll(nwtavespeedList);
|
|
|
- resultList.addAll(wtavepowerList);
|
|
|
- resultList.addAll(ywtavepowerList);
|
|
|
- resultList.addAll(nwtavepowerList);
|
|
|
- resultList.addAll(rfdlList);
|
|
|
- resultList.addAll(yfdlList);
|
|
|
- resultList.addAll(nfdlList);
|
|
|
- double linefdl = rfdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- double lineyfdl = yfdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- double linenfdl = nfdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- PointData fdlpoint = createWpPointData(linefdlpointnew, linefdl);
|
|
|
- PointData yfdlpoint = createWpPointData(ylinefdlpointnew, lineyfdl);
|
|
|
- PointData nfdlpoint = createWpPointData(nlinefdlpointnew, linenfdl);
|
|
|
- linefdlList.add(fdlpoint);
|
|
|
- ylinefdlList.add(yfdlpoint);
|
|
|
- nlinefdlList.add(nfdlpoint);
|
|
|
-
|
|
|
- //算风能利用率
|
|
|
-
|
|
|
- List<String> pointList = new ArrayList<>();
|
|
|
- double ssdl = 0;
|
|
|
- Arrays.stream(monthbenchPoints.split(",")).forEach(code->{
|
|
|
- pointList.add(linepointnewmap.get(code).getCode());
|
|
|
- });
|
|
|
- try {
|
|
|
- List<PointData> ssdlList = edosUtil.getRealData(pointList);
|
|
|
- ssdl = ssdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- double fnlyl = (ssdl+lineyfdl)!=0?lineyfdl/(ssdl+lineyfdl):0;
|
|
|
- PointData fnlylpoint = createWpPointData(linefnlylpointnew, fnlyl);
|
|
|
- resultList.add(fnlylpoint);
|
|
|
-
|
|
|
- OptionalDouble average = wtavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- if (average.isPresent()){
|
|
|
- double linespeed = average.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(linepointnew, linespeed);
|
|
|
- lineavespeedList.add(pointData);
|
|
|
- }
|
|
|
- OptionalDouble yaverage = ywtavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- if (yaverage.isPresent()){
|
|
|
- double linespeed = yaverage.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(ylinepointnew, linespeed);
|
|
|
- ylineavespeedList.add(pointData);
|
|
|
- }
|
|
|
- OptionalDouble naverage = nwtavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- if (naverage.isPresent()){
|
|
|
- double linespeed = naverage.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(nlinepointnew, linespeed);
|
|
|
- nlineavespeedList.add(pointData);
|
|
|
- }
|
|
|
- Double poweraverage = wtavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- PointData powerpointData = createWpPointData(linepowerpointnew, poweraverage);
|
|
|
- lineavepowerList.add(powerpointData);
|
|
|
+ double fnlyl = (ssdl+lineyfdl)!=0?lineyfdl/(ssdl+lineyfdl):0;
|
|
|
+ PointData fnlylpoint = createWpPointData(linefnlylpointnew, fnlyl);
|
|
|
+ resultList.add(fnlylpoint);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Double poweraverage = wtavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
+ PointData powerpointData = createWpPointData(linepowerpointnew, poweraverage);
|
|
|
+ lineavepowerList.add(powerpointData);
|
|
|
|
|
|
- Double ypoweraverage = ywtavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- PointData ypowerpointData = createWpPointData(ylinepowerpointnew, ypoweraverage);
|
|
|
- ylineavepowerList.add(ypowerpointData);
|
|
|
+ Double ypoweraverage = ywtavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
+ PointData ypowerpointData = createWpPointData(ylinepowerpointnew, ypoweraverage);
|
|
|
+ ylineavepowerList.add(ypowerpointData);
|
|
|
|
|
|
- Double npoweraverage = nwtavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- PointData npowerpointData = createWpPointData(nlinepowerpointnew, npoweraverage);
|
|
|
- nlineavepowerList.add(npowerpointData);
|
|
|
+ Double npoweraverage = nwtavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
+ PointData npowerpointData = createWpPointData(nlinepowerpointnew, npoweraverage);
|
|
|
+ nlineavepowerList.add(npowerpointData);
|
|
|
+ }
|
|
|
});
|
|
|
- OptionalDouble average = lineavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- OptionalDouble yaverage = ylineavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- OptionalDouble naverage = nlineavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
|
|
|
Double prorfdl = linefdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
Double proyfdl = ylinefdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
Double pronfdl = nlinefdlList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
- resultList.addAll(lineavespeedList);
|
|
|
- resultList.addAll(ylineavespeedList);
|
|
|
- resultList.addAll(nlineavespeedList);
|
|
|
+
|
|
|
resultList.addAll(lineavepowerList);
|
|
|
resultList.addAll(ylineavepowerList);
|
|
|
resultList.addAll(nlineavepowerList);
|
|
@@ -346,21 +287,7 @@ public class AverageAndGeneratingService {
|
|
|
projectfdlList.add(rfdlpointData);
|
|
|
projectyfdlList.add(yfdlpointData);
|
|
|
projectnfdlList.add(nfdlpointData);
|
|
|
- if (average.isPresent()){
|
|
|
- double projectspeed = average.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(projectpointnew, projectspeed);
|
|
|
- projectavespeedList.add(pointData);
|
|
|
- }
|
|
|
- if (yaverage.isPresent()){
|
|
|
- double projectspeed = yaverage.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(yprojectpointnew, projectspeed);
|
|
|
- yprojectavespeedList.add(pointData);
|
|
|
- }
|
|
|
- if (naverage.isPresent()){
|
|
|
- double projectspeed = naverage.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(nprojectpointnew, projectspeed);
|
|
|
- nprojectavespeedList.add(pointData);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
Double poweraverage = lineavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
Double ypoweraverage = ylineavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
@@ -404,27 +331,8 @@ public class AverageAndGeneratingService {
|
|
|
PointData nfdlpointData = createWpPointData(nfdlwppointnew, fcnfdl);
|
|
|
resultList.add(nfdlpointData);
|
|
|
|
|
|
- OptionalDouble average = projectavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- resultList.addAll(projectavespeedList);
|
|
|
- if (average.isPresent()){
|
|
|
- double wpspeed = average.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(wppointnew, wpspeed);
|
|
|
- resultList.add(pointData);
|
|
|
- }
|
|
|
- OptionalDouble yaverage = yprojectavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- resultList.addAll(yprojectavespeedList);
|
|
|
- if (yaverage.isPresent()){
|
|
|
- double wpspeed = yaverage.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(ywppointnew, wpspeed);
|
|
|
- resultList.add(pointData);
|
|
|
- }
|
|
|
- OptionalDouble naverage = nprojectavespeedList.stream().mapToDouble(PointData::getPointValueInDouble).average();
|
|
|
- resultList.addAll(nprojectavespeedList);
|
|
|
- if (naverage.isPresent()){
|
|
|
- double wpspeed = naverage.getAsDouble();
|
|
|
- PointData pointData = createWpPointData(nwppointnew, wpspeed);
|
|
|
- resultList.add(pointData);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
Double poweraverage = projectavepowerList.stream().mapToDouble(PointData::getPointValueInDouble).sum();
|
|
|
resultList.addAll(projectavepowerList);
|
|
|
PointData powerpointData = createWpPointData(powerwppointnew, poweraverage);
|