|
@@ -1,6 +1,7 @@
|
|
package com.gyee.runeconomy.service.monitor;
|
|
package com.gyee.runeconomy.service.monitor;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.gyee.backconfig.model.auto.ProBasicOrganizeTree;
|
|
import com.gyee.common.contant.ContantXk;
|
|
import com.gyee.common.contant.ContantXk;
|
|
import com.gyee.common.model.PointData;
|
|
import com.gyee.common.model.PointData;
|
|
import com.gyee.common.util.DateUtils;
|
|
import com.gyee.common.util.DateUtils;
|
|
@@ -10,7 +11,9 @@ import com.gyee.runeconomy.dto.DataVo;
|
|
import com.gyee.runeconomy.dto.PowercurveVo;
|
|
import com.gyee.runeconomy.dto.PowercurveVo;
|
|
import com.gyee.runeconomy.dto.ProjectplanVo;
|
|
import com.gyee.runeconomy.dto.ProjectplanVo;
|
|
import com.gyee.runeconomy.init.CacheContext;
|
|
import com.gyee.runeconomy.init.CacheContext;
|
|
-import com.gyee.runeconomy.model.auto.*;
|
|
|
|
|
|
+import com.gyee.runeconomy.model.auto.ProBasicCompany;
|
|
|
|
+import com.gyee.runeconomy.model.auto.ProBasicPowerstationPoint;
|
|
|
|
+import com.gyee.runeconomy.model.auto.ProBasicProjectPlan;
|
|
import com.gyee.runeconomy.service.auto.IProBasicEquipmentPointService;
|
|
import com.gyee.runeconomy.service.auto.IProBasicEquipmentPointService;
|
|
import com.gyee.runeconomy.service.auto.IProBasicPowerstationPointService;
|
|
import com.gyee.runeconomy.service.auto.IProBasicPowerstationPointService;
|
|
import com.gyee.runeconomy.service.auto.IProBasicProjectPlanService;
|
|
import com.gyee.runeconomy.service.auto.IProBasicProjectPlanService;
|
|
@@ -116,17 +119,17 @@ public class MonitorService {
|
|
String id = wp.getId();
|
|
String id = wp.getId();
|
|
if (CacheContext.wpmap.containsKey(id) && id.endsWith("FDC_STA")) {
|
|
if (CacheContext.wpmap.containsKey(id) && id.endsWith("FDC_STA")) {
|
|
xx.put("name", wp.getAname());
|
|
xx.put("name", wp.getAname());
|
|
- xx.put("companyid", wp.getCompanyId());
|
|
|
|
- xx.put("zjts", Double.valueOf(wp.getJrwindQuantityLd()));
|
|
|
|
- xx.put("zjrl", wp.getJrwindCapacity());
|
|
|
|
- xx.put("hszjts", wp.getJrwindQuantityHs());
|
|
|
|
|
|
+ xx.put("companyid", wp.getParentCode());
|
|
|
|
+ xx.put("zjts", Double.valueOf(wp.getJrWindQuantityLd()));
|
|
|
|
+ xx.put("zjrl", wp.getJrWindCapacity());
|
|
|
|
+ xx.put("hszjts", wp.getJrWindQuantityHs());
|
|
double gl = 0.0;
|
|
double gl = 0.0;
|
|
ProBasicPowerstationPoint glvalue = proBasicPowerstationPointService.getPowerstationPoint(id, ContantXk.SSZGL);
|
|
ProBasicPowerstationPoint glvalue = proBasicPowerstationPointService.getPowerstationPoint(id, ContantXk.SSZGL);
|
|
gl = edosUtil.getRealData(glvalue).getPointValueInDouble();
|
|
gl = edosUtil.getRealData(glvalue).getPointValueInDouble();
|
|
xx.put("gl", MathUtil.twoBit(gl));
|
|
xx.put("gl", MathUtil.twoBit(gl));
|
|
} else if (CacheContext.wpmap.containsKey(id) && id.endsWith("GDC_STA")) {
|
|
} else if (CacheContext.wpmap.containsKey(id) && id.endsWith("GDC_STA")) {
|
|
xx.put("name", wp.getAname());
|
|
xx.put("name", wp.getAname());
|
|
- xx.put("companyid", wp.getCompanyId());
|
|
|
|
|
|
+ xx.put("companyid", wp.getParentCode());
|
|
xx.put("zczjts", Double.valueOf(wp.getJrQuantityZc()));
|
|
xx.put("zczjts", Double.valueOf(wp.getJrQuantityZc()));
|
|
xx.put("jzzjts", Double.valueOf(wp.getJrQuantityJz()));
|
|
xx.put("jzzjts", Double.valueOf(wp.getJrQuantityJz()));
|
|
xx.put("zjrl", wp.getJrCapacity());
|
|
xx.put("zjrl", wp.getJrCapacity());
|
|
@@ -471,22 +474,22 @@ public class MonitorService {
|
|
|
|
|
|
if (wpId.contains(QS) || wpId.contains(FD) || wpId.contains(GF)) {
|
|
if (wpId.contains(QS) || wpId.contains(FD) || wpId.contains(GF)) {
|
|
for (ProBasicOrganizeTree wp : wplist) {
|
|
for (ProBasicOrganizeTree wp : wplist) {
|
|
- zjrl += wp.getJrCapacity() + wp.getJrwindCapacity();
|
|
|
|
|
|
+ zjrl += wp.getJrCapacity() + wp.getJrWindCapacity();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
for (ProBasicOrganizeTree wp : CacheContext.wpls) {
|
|
for (ProBasicOrganizeTree wp : CacheContext.wpls) {
|
|
if (wpId.equals(wp.getId())) {
|
|
if (wpId.equals(wp.getId())) {
|
|
- zjrl += wp.getJrCapacity() + wp.getJrwindCapacity();
|
|
|
|
|
|
+ zjrl += wp.getJrCapacity() + wp.getJrWindCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree pj : CacheContext.pjls) {
|
|
for (ProBasicOrganizeTree pj : CacheContext.pjls) {
|
|
if (wpId.equals(pj.getId())) {
|
|
if (wpId.equals(pj.getId())) {
|
|
- zjrl += pj.getCapacity();
|
|
|
|
|
|
+ zjrl += pj.getJrCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree ln : CacheContext.lnls) {
|
|
for (ProBasicOrganizeTree ln : CacheContext.lnls) {
|
|
if (wpId.equals(ln.getId())) {
|
|
if (wpId.equals(ln.getId())) {
|
|
- zjrl += ln.getCapacity();
|
|
|
|
|
|
+ zjrl += ln.getJrCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -637,35 +640,35 @@ public class MonitorService {
|
|
|
|
|
|
for (ProBasicOrganizeTree gp : gpls) {
|
|
for (ProBasicOrganizeTree gp : gpls) {
|
|
if (wpId.contains(gp.getId())) {
|
|
if (wpId.contains(gp.getId())) {
|
|
- qt.put("fdzzjrl", gp.getWindCapacity() / 1000);
|
|
|
|
- qt.put("gfzzjrl", gp.getCapacity() / 1000);
|
|
|
|
- qt.put("zzjrl", (gp.getWindCapacity() + gp.getCapacity()) / 1000);
|
|
|
|
|
|
+ qt.put("fdzzjrl", gp.getJrWindCapacity() / 1000);
|
|
|
|
+ qt.put("gfzzjrl", gp.getJrCapacity() / 1000);
|
|
|
|
+ qt.put("zzjrl", (gp.getJrWindCapacity() + gp.getJrCapacity()) / 1000);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree rg : rgls) {
|
|
for (ProBasicOrganizeTree rg : rgls) {
|
|
if (wpId.contains(rg.getId())) {
|
|
if (wpId.contains(rg.getId())) {
|
|
- qt.put("fdzzjrl", rg.getJrwindCapacity() / 1000);
|
|
|
|
|
|
+ qt.put("fdzzjrl", rg.getJrWindCapacity() / 1000);
|
|
qt.put("gfzzjrl", rg.getJrCapacity() / 1000);
|
|
qt.put("gfzzjrl", rg.getJrCapacity() / 1000);
|
|
- qt.put("zzjrl", (rg.getJrwindCapacity() + rg.getJrCapacity()) / 1000);
|
|
|
|
- qt.put("ylyxs", MathUtil.twoBit(yfdl / 1000) / ((rg.getJrwindCapacity() + rg.getJrCapacity()) / 1000));
|
|
|
|
- qt.put("nlyxs", MathUtil.twoBit(nfdl / 1000) / ((rg.getJrwindCapacity() + rg.getJrCapacity()) / 1000));
|
|
|
|
|
|
+ qt.put("zzjrl", (rg.getJrWindCapacity() + rg.getJrCapacity()) / 1000);
|
|
|
|
+ qt.put("ylyxs", MathUtil.twoBit(yfdl / 1000) / ((rg.getJrWindCapacity() + rg.getJrCapacity()) / 1000));
|
|
|
|
+ qt.put("nlyxs", MathUtil.twoBit(nfdl / 1000) / ((rg.getJrWindCapacity() + rg.getJrCapacity()) / 1000));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
for (ProBasicOrganizeTree cp : cpls) {
|
|
for (ProBasicOrganizeTree cp : cpls) {
|
|
if (wpId.contains(cp.getId())) {
|
|
if (wpId.contains(cp.getId())) {
|
|
- qt.put("fdzzjrl", cp.getJrwindCapacity() / 1000);
|
|
|
|
|
|
+ qt.put("fdzzjrl", cp.getJrWindCapacity() / 1000);
|
|
qt.put("gfzzjrl", cp.getJrCapacity() / 1000);
|
|
qt.put("gfzzjrl", cp.getJrCapacity() / 1000);
|
|
- qt.put("zzjrl", (cp.getJrwindCapacity() + cp.getJrCapacity()) / 1000);
|
|
|
|
- qt.put("ylyxs", MathUtil.twoBit(yfdl / 1000) / ((cp.getJrwindCapacity() + cp.getJrCapacity()) / 1000));
|
|
|
|
- qt.put("nlyxs", MathUtil.twoBit(nfdl / 1000) / ((cp.getJrwindCapacity() + cp.getJrCapacity()) / 1000));
|
|
|
|
|
|
+ qt.put("zzjrl", (cp.getJrWindCapacity() + cp.getJrCapacity()) / 1000);
|
|
|
|
+ qt.put("ylyxs", MathUtil.twoBit(yfdl / 1000) / ((cp.getJrWindCapacity() + cp.getJrCapacity()) / 1000));
|
|
|
|
+ qt.put("nlyxs", MathUtil.twoBit(nfdl / 1000) / ((cp.getJrWindCapacity() + cp.getJrCapacity()) / 1000));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree wp : wplist) {
|
|
for (ProBasicOrganizeTree wp : wplist) {
|
|
if (wpId.contains(wp.getId())) {
|
|
if (wpId.contains(wp.getId())) {
|
|
|
|
|
|
- qt.put("ylyxs", MathUtil.twoBit(yfdl / 1000) / ((wp.getJrwindCapacity() + wp.getJrCapacity()) / 1000));
|
|
|
|
- qt.put("nlyxs", MathUtil.twoBit(nfdl / 1000) / ((wp.getJrwindCapacity() + wp.getJrCapacity()) / 1000));
|
|
|
|
|
|
+ qt.put("ylyxs", MathUtil.twoBit(yfdl / 1000) / ((wp.getJrWindCapacity() + wp.getJrCapacity()) / 1000));
|
|
|
|
+ qt.put("nlyxs", MathUtil.twoBit(nfdl / 1000) / ((wp.getJrWindCapacity() + wp.getJrCapacity()) / 1000));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
qt.put("aqts", MathUtil.twoBit(aqts));
|
|
qt.put("aqts", MathUtil.twoBit(aqts));
|
|
@@ -767,7 +770,7 @@ public class MonitorService {
|
|
sxcygfzjrl = reg.getCapacity();
|
|
sxcygfzjrl = reg.getCapacity();
|
|
|
|
|
|
sxgsfdcsl = reg.getJrWindNumber();
|
|
sxgsfdcsl = reg.getJrWindNumber();
|
|
- sxgsfdzjrl = reg.getJrwindCapacity();
|
|
|
|
|
|
+ sxgsfdzjrl = reg.getJrWindCapacity();
|
|
sxgsgfcsl = reg.getJrNumber();
|
|
sxgsgfcsl = reg.getJrNumber();
|
|
sxgsgfzjrl = reg.getJrCapacity();
|
|
sxgsgfzjrl = reg.getJrCapacity();
|
|
}
|
|
}
|
|
@@ -802,7 +805,7 @@ public class MonitorService {
|
|
nmcygfzjrl = reg.getCapacity();
|
|
nmcygfzjrl = reg.getCapacity();
|
|
|
|
|
|
nmgsfdcsl = reg.getJrWindNumber();
|
|
nmgsfdcsl = reg.getJrWindNumber();
|
|
- nmgsfdzjrl = reg.getJrwindCapacity();
|
|
|
|
|
|
+ nmgsfdzjrl = reg.getJrWindCapacity();
|
|
nmgsgfcsl = reg.getJrNumber();
|
|
nmgsgfcsl = reg.getJrNumber();
|
|
nmgsgfzjrl = reg.getJrCapacity();
|
|
nmgsgfzjrl = reg.getJrCapacity();
|
|
}
|
|
}
|
|
@@ -1356,29 +1359,29 @@ public class MonitorService {
|
|
if (wpId.contains(QS) || wpId.contains(FD) || wpId.contains(GF)) {
|
|
if (wpId.contains(QS) || wpId.contains(FD) || wpId.contains(GF)) {
|
|
for (ProBasicOrganizeTree rg : CacheContext.rgls) {
|
|
for (ProBasicOrganizeTree rg : CacheContext.rgls) {
|
|
if (wpId.contains(rg.getId())) {
|
|
if (wpId.contains(rg.getId())) {
|
|
- zjrl += rg.getJrCapacity() + rg.getJrwindCapacity();
|
|
|
|
|
|
+ zjrl += rg.getJrCapacity() + rg.getJrWindCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree cp : CacheContext.cpls){
|
|
for (ProBasicOrganizeTree cp : CacheContext.cpls){
|
|
if (wpId.contains(cp.getId())) {
|
|
if (wpId.contains(cp.getId())) {
|
|
- zjrl += cp.getJrCapacity() + cp.getJrwindCapacity();
|
|
|
|
|
|
+ zjrl += cp.getJrCapacity() + cp.getJrWindCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
for (ProBasicOrganizeTree wp : CacheContext.wpls) {
|
|
for (ProBasicOrganizeTree wp : CacheContext.wpls) {
|
|
if (wpId.equals(wp.getId())) {
|
|
if (wpId.equals(wp.getId())) {
|
|
- zjrl += wp.getJrCapacity() + wp.getJrwindCapacity();
|
|
|
|
|
|
+ zjrl += wp.getJrCapacity() + wp.getJrWindCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree pj : CacheContext.pjls) {
|
|
for (ProBasicOrganizeTree pj : CacheContext.pjls) {
|
|
if (wpId.equals(pj.getId())) {
|
|
if (wpId.equals(pj.getId())) {
|
|
- zjrl += pj.getCapacity();
|
|
|
|
|
|
+ zjrl += pj.getJrCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (ProBasicOrganizeTree ln : CacheContext.lnls) {
|
|
for (ProBasicOrganizeTree ln : CacheContext.lnls) {
|
|
if (wpId.equals(ln.getId())) {
|
|
if (wpId.equals(ln.getId())) {
|
|
- zjrl += ln.getCapacity();
|
|
|
|
|
|
+ zjrl += ln.getJrCapacity();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|