|
@@ -304,66 +304,84 @@ public class MonitorService {
|
|
|
|
|
|
Map<String, Double> qt = new HashMap<>();
|
|
|
|
|
|
-// if (wpId.equals(QS) || wpId.equals(FD) || wpId.equals(GF)) {
|
|
|
-// wpId = "SXJ_RGN" + wpId;
|
|
|
-// //安全天数
|
|
|
-// ProBasicPowerstationPoint aqtsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.AQTS);
|
|
|
-// aqts = edosUtil.getRealData(aqtsvalue).getPointValueInDouble();
|
|
|
-// //实时功率
|
|
|
-// ProBasicPowerstationPoint sjglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZGL);
|
|
|
-// sjgl = edosUtil.getRealData(sjglvalue).getPointValueInDouble();
|
|
|
-// //节约水
|
|
|
-// ProBasicPowerstationPoint jysvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYS);
|
|
|
-// jys = edosUtil.getRealData(jysvalue).getPointValueInDouble();
|
|
|
-// //节约煤
|
|
|
-// ProBasicPowerstationPoint jymvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYM);
|
|
|
-// jym = edosUtil.getRealData(jymvalue).getPointValueInDouble();
|
|
|
-// //减排二氧化碳
|
|
|
-// ProBasicPowerstationPoint co2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHT);
|
|
|
-// co2 = edosUtil.getRealData(co2value).getPointValueInDouble();
|
|
|
-// //减排二氧化硫
|
|
|
-// ProBasicPowerstationPoint so2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHL);
|
|
|
-// so2 = edosUtil.getRealData(so2value).getPointValueInDouble();
|
|
|
-//
|
|
|
-// } else {
|
|
|
+ if (wpId.contains(QS) || wpId.contains(FD) || wpId.contains(GF)) {
|
|
|
+ ProBasicPowerstationPoint aqtsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.AQTS);
|
|
|
+ aqts = edosUtil.getRealData(aqtsvalue).getPointValueInDouble();
|
|
|
+
|
|
|
+ //实时功率
|
|
|
+ ProBasicPowerstationPoint sjglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZGL);
|
|
|
+ sjgl = edosUtil.getRealData(sjglvalue).getPointValueInDouble();
|
|
|
+
|
|
|
|
|
|
- //安全天数
|
|
|
- ProBasicPowerstationPoint aqtsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.AQTS);
|
|
|
- aqts = edosUtil.getRealData(aqtsvalue).getPointValueInDouble();
|
|
|
+ //实时风速
|
|
|
+ ProBasicPowerstationPoint ssfsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSPJFS);
|
|
|
+ ssfs = edosUtil.getRealData(ssfsvalue).getPointValueInDouble();
|
|
|
|
|
|
- //实时功率
|
|
|
- ProBasicPowerstationPoint sjglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZGL);
|
|
|
- sjgl = edosUtil.getRealData(sjglvalue).getPointValueInDouble();
|
|
|
+ //光照指数
|
|
|
+ ProBasicPowerstationPoint gzzsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.RPJGZD);
|
|
|
+ gzzs = edosUtil.getRealData(gzzsvalue).getPointValueInDouble();
|
|
|
|
|
|
- //实时风速
|
|
|
- ProBasicPowerstationPoint ssfsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSPJFS);
|
|
|
- ssfs = edosUtil.getRealData(ssfsvalue).getPointValueInDouble();
|
|
|
+ //理论功率
|
|
|
+ ProBasicPowerstationPoint llglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZLLGL);
|
|
|
+ llgl = edosUtil.getRealData(llglvalue).getPointValueInDouble();
|
|
|
|
|
|
- //光照指数
|
|
|
- ProBasicPowerstationPoint gzzsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.RPJGZD);
|
|
|
- gzzs = edosUtil.getRealData(gzzsvalue).getPointValueInDouble();
|
|
|
+ //节约水
|
|
|
+ ProBasicPowerstationPoint jysvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYS);
|
|
|
+ jys = edosUtil.getRealData(jysvalue).getPointValueInDouble();
|
|
|
|
|
|
- //理论功率
|
|
|
- ProBasicPowerstationPoint llglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZLLGL);
|
|
|
- llgl = edosUtil.getRealData(llglvalue).getPointValueInDouble();
|
|
|
+ //减排二氧化碳
|
|
|
+ ProBasicPowerstationPoint co2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHT);
|
|
|
+ co2 = edosUtil.getRealData(co2value).getPointValueInDouble();
|
|
|
|
|
|
- //节约水
|
|
|
- ProBasicPowerstationPoint jysvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYS);
|
|
|
- jys = edosUtil.getRealData(jysvalue).getPointValueInDouble();
|
|
|
+ //减排二氧化硫
|
|
|
+ ProBasicPowerstationPoint so2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHL);
|
|
|
+ so2 = edosUtil.getRealData(so2value).getPointValueInDouble();
|
|
|
|
|
|
- //减排二氧化碳
|
|
|
- ProBasicPowerstationPoint co2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHT);
|
|
|
- co2 = edosUtil.getRealData(co2value).getPointValueInDouble();
|
|
|
+ //节约煤
|
|
|
+ ProBasicPowerstationPoint jymvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYM);
|
|
|
+ jym = edosUtil.getRealData(jymvalue).getPointValueInDouble();
|
|
|
+ } else {
|
|
|
+ //安全天数
|
|
|
+ ProBasicPowerstationPoint aqtsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.AQTS);
|
|
|
+ aqts = edosUtil.getRealData(aqtsvalue).getPointValueInDouble();
|
|
|
+
|
|
|
+ //实时功率
|
|
|
+ ProBasicPowerstationPoint sjglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZGL);
|
|
|
+ sjgl = edosUtil.getRealData(sjglvalue).getPointValueInDouble();
|
|
|
+
|
|
|
+
|
|
|
+ if (wpId.contains("F")) {
|
|
|
+ //实时风速
|
|
|
+ ProBasicPowerstationPoint ssfsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSPJFS);
|
|
|
+ ssfs = edosUtil.getRealData(ssfsvalue).getPointValueInDouble();
|
|
|
+ }else if (wpId.contains("G")){
|
|
|
+ //光照指数
|
|
|
+ ProBasicPowerstationPoint gzzsvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.RPJGZD);
|
|
|
+ gzzs = edosUtil.getRealData(gzzsvalue).getPointValueInDouble();
|
|
|
+ }
|
|
|
|
|
|
- //减排二氧化硫
|
|
|
- ProBasicPowerstationPoint so2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHL);
|
|
|
- so2 = edosUtil.getRealData(so2value).getPointValueInDouble();
|
|
|
+ //理论功率
|
|
|
+ ProBasicPowerstationPoint llglvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.SSZLLGL);
|
|
|
+ llgl = edosUtil.getRealData(llglvalue).getPointValueInDouble();
|
|
|
|
|
|
- //节约煤
|
|
|
- ProBasicPowerstationPoint jymvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYM);
|
|
|
- jym = edosUtil.getRealData(jymvalue).getPointValueInDouble();
|
|
|
+ //节约水
|
|
|
+ ProBasicPowerstationPoint jysvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYS);
|
|
|
+ jys = edosUtil.getRealData(jysvalue).getPointValueInDouble();
|
|
|
|
|
|
-// }
|
|
|
+ //减排二氧化碳
|
|
|
+ ProBasicPowerstationPoint co2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHT);
|
|
|
+ co2 = edosUtil.getRealData(co2value).getPointValueInDouble();
|
|
|
+
|
|
|
+ //减排二氧化硫
|
|
|
+ ProBasicPowerstationPoint so2value = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYEYHL);
|
|
|
+ so2 = edosUtil.getRealData(so2value).getPointValueInDouble();
|
|
|
+
|
|
|
+ //节约煤
|
|
|
+ ProBasicPowerstationPoint jymvalue = proBasicPowerstationPointService.getPowerstationPoint(wpId, ContantXk.JYM);
|
|
|
+ jym = edosUtil.getRealData(jymvalue).getPointValueInDouble();
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
qt.put("aqts", MathUtil.twoBit(aqts));
|
|
|
qt.put("sjgl", MathUtil.twoBit(sjgl));
|
|
|
qt.put("llgl", MathUtil.twoBit(llgl));
|
|
@@ -812,7 +830,7 @@ public class MonitorService {
|
|
|
//接入光伏集中数量
|
|
|
jr_gf_jzts += null != pg.getJrquantityJz() ? pg.getJrquantityJz() : 0.0;
|
|
|
|
|
|
- if (pg.getId().contains("FLFD")){
|
|
|
+ if (pg.getId().contains("FLFD")) {
|
|
|
//风电装机容量
|
|
|
flfd_zjrl += null != pg.getWindCapacity() ? pg.getWindCapacity() : 0.0;
|
|
|
//接入风电装机容量
|
|
@@ -825,7 +843,7 @@ public class MonitorService {
|
|
|
flfdfj_ts += null != pg.getWindQuantityLd() ? pg.getWindQuantityLd() : 0.0;
|
|
|
//接入风机数量
|
|
|
jr_flfdfj_ts += null != pg.getJrwindQuantityLd() ? pg.getJrwindQuantityLd() : 0.0;
|
|
|
- } else if (pg.getId().contains("GFFD")){
|
|
|
+ } else if (pg.getId().contains("GFFD")) {
|
|
|
//清洁能源光伏装机容量
|
|
|
gffd_zjrl += null != pg.getCapacity() ? pg.getCapacity() : 0.0;
|
|
|
//接入光伏装机容量
|
|
@@ -843,7 +861,7 @@ public class MonitorService {
|
|
|
//接入光伏集中数量
|
|
|
jr_gffd_jzts += null != pg.getJrquantityJz() ? pg.getJrquantityJz() : 0.0;
|
|
|
|
|
|
- }else if (pg.getId().contains("QH")){
|
|
|
+ } else if (pg.getId().contains("QH")) {
|
|
|
|
|
|
//七和风电装机容量
|
|
|
qhfd_zjrl += null != pg.getWindCapacity() ? pg.getWindCapacity() : 0.0;
|