|
@@ -27,6 +27,59 @@ public class RegionCalreService {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
private IEdosUtil edosUtil;
|
|
private IEdosUtil edosUtil;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public void aqts() throws Exception {
|
|
|
|
+ Date currentDate = DateUtils.getCurrentDate();
|
|
|
|
+ List<ProBasicCompany> cpls = CacheContext.cpls;
|
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> companypointmap = CacheContext.companypointmap;
|
|
|
|
+ List<ProBasicEnergyGroup> egls = CacheContext.egls;
|
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> grouppointmap = CacheContext.grouppointmap;
|
|
|
|
+ List<ProBasicRegion> rgls = CacheContext.rgls;
|
|
|
|
+ Map<String, Map<String, ProBasicPowerstationPoint>> regionpointmap = CacheContext.regionpointmap;
|
|
|
|
+ List<PointData> resultList = new ArrayList<>();
|
|
|
|
+ List<ProBasicPowerstationPoint> points = new ArrayList<>();
|
|
|
|
+ List<String> pointstring = new ArrayList<>();
|
|
|
|
+ cpls.stream().forEach(company->{
|
|
|
|
+ ProBasicPowerstationPoint cp0Point = companypointmap.get(company.getId()+"0").get(ContantXk.AQTS);
|
|
|
|
+ ProBasicPowerstationPoint cp1Point = companypointmap.get(company.getId()+"-1").get(ContantXk.AQTS);
|
|
|
|
+ ProBasicPowerstationPoint cp2Point = companypointmap.get(company.getId()+"-2").get(ContantXk.AQTS);
|
|
|
|
+ points.add(cp0Point);
|
|
|
|
+ points.add(cp1Point);
|
|
|
|
+ points.add(cp2Point);
|
|
|
|
+ });
|
|
|
|
+ rgls.stream().forEach(company->{
|
|
|
|
+ ProBasicPowerstationPoint rg0Point = companypointmap.get(company.getId()+"0").get(ContantXk.AQTS);
|
|
|
|
+ ProBasicPowerstationPoint rg1Point = companypointmap.get(company.getId()+"-1").get(ContantXk.AQTS);
|
|
|
|
+ ProBasicPowerstationPoint rg2Point = companypointmap.get(company.getId()+"-2").get(ContantXk.AQTS);
|
|
|
|
+ points.add(rg0Point);
|
|
|
|
+ points.add(rg1Point);
|
|
|
|
+ points.add(rg2Point);
|
|
|
|
+ });
|
|
|
|
+ egls.stream().forEach(company->{
|
|
|
|
+ ProBasicPowerstationPoint eg0Point = companypointmap.get(company.getId()+"0").get(ContantXk.AQTS);
|
|
|
|
+ ProBasicPowerstationPoint eg1Point = companypointmap.get(company.getId()+"-1").get(ContantXk.AQTS);
|
|
|
|
+ ProBasicPowerstationPoint eg2Point = companypointmap.get(company.getId()+"-2").get(ContantXk.AQTS);
|
|
|
|
+ points.add(eg0Point);
|
|
|
|
+ points.add(eg1Point);
|
|
|
|
+ points.add(eg2Point);
|
|
|
|
+ });
|
|
|
|
+ points.stream().forEach(i->{
|
|
|
|
+ pointstring.add(i.getNemCode());
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ List<PointData> realData = edosUtil.getRealData(pointstring);
|
|
|
|
+ realData.stream().forEach(real->{
|
|
|
|
+ real.setPointValueInDouble(real.getPointValueInDouble()+1);
|
|
|
|
+ real.setPointValueInDouble2(real.getPointValueInDouble2()+1);
|
|
|
|
+ real.setPointValue(real.getPointValueInDouble()+1+"");
|
|
|
|
+ real.setPointTime(currentDate.getTime());
|
|
|
|
+ });
|
|
|
|
+ edosUtil.sendMultiPoint(realData);
|
|
|
|
+
|
|
|
|
+ }
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
@@ -561,7 +614,9 @@ public class RegionCalreService {
|
|
}
|
|
}
|
|
Double aqts = Collections.max(aqtsList);
|
|
Double aqts = Collections.max(aqtsList);
|
|
|
|
|
|
- resultList.add(PointUtil.createPointData(currentDate,aqts,zaqtsPoint.getNemCode(),zaqtsPoint.getName()));
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// resultList.add(PointUtil.createPointData(currentDate,aqts,zaqtsPoint.getNemCode(),zaqtsPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,zczzt,zczztPoint.getNemCode(),zczztPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,zczzt,zczztPoint.getNemCode(),zczztPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszgl.get(),zsszglPoint.getNemCode(),zsszglPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszgl.get(),zsszglPoint.getNemCode(),zsszglPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszglsyz.get(),zsszglsyzPoint.getNemCode(),zsszglsyzPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszglsyz.get(),zsszglsyzPoint.getNemCode(),zsszglsyzPoint.getName()));
|
|
@@ -1019,7 +1074,7 @@ public class RegionCalreService {
|
|
}
|
|
}
|
|
|
|
|
|
Double aqts = Collections.max(aqtsList);
|
|
Double aqts = Collections.max(aqtsList);
|
|
- resultList.add(PointUtil.createPointData(currentDate,aqts,zaqtsPoint.getNemCode(),zaqtsPoint.getName()));
|
|
|
|
|
|
+// resultList.add(PointUtil.createPointData(currentDate,aqts,zaqtsPoint.getNemCode(),zaqtsPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,zczzt,zczztPoint.getNemCode(),zczztPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,zczzt,zczztPoint.getNemCode(),zczztPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszgl.get(),zsszglPoint.getNemCode(),zsszglPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszgl.get(),zsszglPoint.getNemCode(),zsszglPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszglsyz.get(),zsszglsyzPoint.getNemCode(),zsszglsyzPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszglsyz.get(),zsszglsyzPoint.getNemCode(),zsszglsyzPoint.getName()));
|
|
@@ -1476,7 +1531,7 @@ public class RegionCalreService {
|
|
}
|
|
}
|
|
|
|
|
|
Double aqts = Collections.max(aqtsList);
|
|
Double aqts = Collections.max(aqtsList);
|
|
- resultList.add(PointUtil.createPointData(currentDate,aqts,zaqtsPoint.getNemCode(),zaqtsPoint.getName()));
|
|
|
|
|
|
+// resultList.add(PointUtil.createPointData(currentDate,aqts,zaqtsPoint.getNemCode(),zaqtsPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,zczzt,zczztPoint.getNemCode(),zczztPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,zczzt,zczztPoint.getNemCode(),zczztPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszgl.get(),zsszglPoint.getNemCode(),zsszglPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszgl.get(),zsszglPoint.getNemCode(),zsszglPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszglsyz.get(),zsszglsyzPoint.getNemCode(),zsszglsyzPoint.getName()));
|
|
resultList.add(PointUtil.createPointData(currentDate,sszglsyz.get(),zsszglsyzPoint.getNemCode(),zsszglsyzPoint.getName()));
|