|
@@ -1,6 +1,5 @@
|
|
package com.gyee.frame.service.app.index;
|
|
package com.gyee.frame.service.app.index;
|
|
|
|
|
|
-import com.gyee.frame.common.conf.redis.CacheContext;
|
|
|
|
import com.gyee.frame.common.spring.Constant;
|
|
import com.gyee.frame.common.spring.Constant;
|
|
import com.gyee.frame.common.spring.InitialRunner;
|
|
import com.gyee.frame.common.spring.InitialRunner;
|
|
import com.gyee.frame.model.auto.WindPowerStationTestingPoint2;
|
|
import com.gyee.frame.model.auto.WindPowerStationTestingPoint2;
|
|
@@ -11,9 +10,9 @@ import com.gyee.frame.model.enumeration.Messagetype;
|
|
import com.gyee.frame.netty.websocket.util.SocketToolService;
|
|
import com.gyee.frame.netty.websocket.util.SocketToolService;
|
|
import com.gyee.frame.service.ProjectplanService;
|
|
import com.gyee.frame.service.ProjectplanService;
|
|
import com.gyee.frame.service.WindpowerinfodayService;
|
|
import com.gyee.frame.service.WindpowerinfodayService;
|
|
|
|
+import com.gyee.frame.util.IRealTimeDataBaseUtil;
|
|
|
|
+import com.gyee.frame.util.RealTimeDataBaseFactory;
|
|
import com.gyee.frame.util.StringUtils;
|
|
import com.gyee.frame.util.StringUtils;
|
|
-import com.gyee.frame.util.golden.EdosUtil;
|
|
|
|
-import com.gyee.frame.util.golden.IEdosUtil;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -22,27 +21,16 @@ import java.math.BigDecimal;
|
|
import java.math.RoundingMode;
|
|
import java.math.RoundingMode;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
-/**
|
|
|
|
- *
|
|
|
|
- *@author:Li Miao
|
|
|
|
- *
|
|
|
|
- *@description: sis手机app首页数据接入
|
|
|
|
- *
|
|
|
|
- *@createTime:2020年5月15日
|
|
|
|
- *
|
|
|
|
- */
|
|
|
|
@Service
|
|
@Service
|
|
public class IndexService extends SocketToolService{
|
|
public class IndexService extends SocketToolService{
|
|
|
|
+ @Resource
|
|
|
|
+ private ProjectplanService projectplanService;
|
|
|
|
+ @Resource
|
|
|
|
+ private WindpowerinfodayService windpowerinfodayService;
|
|
@Autowired
|
|
@Autowired
|
|
private InitialRunner initialRunner;
|
|
private InitialRunner initialRunner;
|
|
- private static int decimal_digit = 2;
|
|
|
|
- IEdosUtil mongodb = new EdosUtil();
|
|
|
|
- @Resource
|
|
|
|
- private WindpowerinfodayService windpowerinfodayService;
|
|
|
|
- @Resource
|
|
|
|
- private ProjectplanService projectplanService;
|
|
|
|
- @Resource
|
|
|
|
- private FocastpowerService focastpowerService;
|
|
|
|
|
|
+ private static int decimal_digit = 0;
|
|
|
|
+
|
|
public void index_target_comprehensive_indicators() throws Exception{
|
|
public void index_target_comprehensive_indicators() throws Exception{
|
|
Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = InitialRunner.stationPointmap;
|
|
Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = InitialRunner.stationPointmap;
|
|
List<Windpowerstation> wpls = new ArrayList<>();
|
|
List<Windpowerstation> wpls = new ArrayList<>();
|
|
@@ -53,7 +41,7 @@ public class IndexService extends SocketToolService{
|
|
windpowerstationAll.setId("0");
|
|
windpowerstationAll.setId("0");
|
|
wpls.add(windpowerstationAll);
|
|
wpls.add(windpowerstationAll);
|
|
Map<String,Map<String,Object>> windpowerstationpointDataMap = new HashMap();
|
|
Map<String,Map<String,Object>> windpowerstationpointDataMap = new HashMap();
|
|
-
|
|
|
|
|
|
+ IRealTimeDataBaseUtil mongodb= RealTimeDataBaseFactory.createRealTimeDataBase();
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
Map<String,Object> pointDataMap = new HashMap();
|
|
Map<String,Object> pointDataMap = new HashMap();
|
|
@@ -62,37 +50,54 @@ public class IndexService extends SocketToolService{
|
|
double swdl = 0;
|
|
double swdl = 0;
|
|
double ycfdl = 0;
|
|
double ycfdl = 0;
|
|
double zjrl = 0;
|
|
double zjrl = 0;
|
|
-
|
|
|
|
|
|
+ PointData swdl_real=new PointData();
|
|
|
|
+ PointData aqts_real=new PointData();
|
|
|
|
+ PointData zjrl_real=new PointData();
|
|
|
|
+ PointData ycfdl_real=new PointData();
|
|
|
|
+ PointData rfdl_real=new PointData();
|
|
try {
|
|
try {
|
|
//日发电量
|
|
//日发电量
|
|
- PointData rfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_RFDL).getCode());
|
|
|
|
|
|
+ rfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_ALL_RFDL).getCode());
|
|
rfdl = new BigDecimal(rfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
rfdl = new BigDecimal(rfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
- pointDataMap.put("rfdl_real",rfdl_real);
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
//安全天数
|
|
//安全天数
|
|
- PointData aqts_real = mongodb.getRealData(stationPointmap.get("0").get(Constant.TPOINT_AQTS).getCode());
|
|
|
|
|
|
+ aqts_real = mongodb.getRealData(InitialRunner.stationPointmap.get("0").get(Constant.TPOINT_AQTS).getCode());
|
|
aqts = new BigDecimal(aqts_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
aqts = new BigDecimal(aqts_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
- pointDataMap.put("aqts_real",aqts_real);
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
try{
|
|
try{
|
|
//上网电量
|
|
//上网电量
|
|
- PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_SWDL).getCode());
|
|
|
|
|
|
+ swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_SWDL).getCode());
|
|
swdl = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
swdl = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
- pointDataMap.put("swdl_real",swdl_real);
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
- //预测发电量
|
|
|
|
- ycfdl=focastpowerService.focastpower(windpowerstation.getId());
|
|
|
|
|
|
+ try{
|
|
|
|
+ //装机容量
|
|
|
|
+ zjrl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_SWDL).getCode());
|
|
|
|
+ zjrl = new BigDecimal(zjrl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ try{
|
|
|
|
+ //预测发电量
|
|
|
|
+ ycfdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.RFDLE).getCode());
|
|
|
|
+ ycfdl = new BigDecimal(ycfdl_real.getPointValueInDouble()).divide(new BigDecimal(10000), 0, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
//装机容量
|
|
//装机容量
|
|
try{
|
|
try{
|
|
@@ -106,16 +111,21 @@ public class IndexService extends SocketToolService{
|
|
}
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
pointDataMap.put("rfdl",rfdl);
|
|
pointDataMap.put("rfdl",rfdl);
|
|
|
|
+ pointDataMap.put("rfdl_real",rfdl_real);
|
|
pointDataMap.put("aqts",aqts);
|
|
pointDataMap.put("aqts",aqts);
|
|
|
|
+ pointDataMap.put("aqts_real",aqts_real);
|
|
pointDataMap.put("swdl",swdl);
|
|
pointDataMap.put("swdl",swdl);
|
|
|
|
+ pointDataMap.put("swdl_real",swdl_real);
|
|
pointDataMap.put("ycfdl",ycfdl);
|
|
pointDataMap.put("ycfdl",ycfdl);
|
|
|
|
+ pointDataMap.put("ycfdl_real",ycfdl_real);
|
|
pointDataMap.put("zjrl",zjrl);
|
|
pointDataMap.put("zjrl",zjrl);
|
|
|
|
+ pointDataMap.put("zjrl_real",zjrl_real);
|
|
windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
}
|
|
}
|
|
- this.pushToWeb("pageNumber_6","functionNumber_1",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
|
|
|
|
+ this.pushToWeb("pageNumber_6","functionNumber_1","all",windpowerstationpointDataMap, Messagetype.JSONOBJECT);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -129,7 +139,7 @@ public class IndexService extends SocketToolService{
|
|
windpowerstationAll.setId("0");
|
|
windpowerstationAll.setId("0");
|
|
wpls.add(windpowerstationAll);
|
|
wpls.add(windpowerstationAll);
|
|
Map<String,Map<String,Object>> windpowerstationpointDataMap = new HashMap();
|
|
Map<String,Map<String,Object>> windpowerstationpointDataMap = new HashMap();
|
|
-
|
|
|
|
|
|
+ IRealTimeDataBaseUtil mongodb= RealTimeDataBaseFactory.createRealTimeDataBase();
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
Map<String,Object> pointDataMap = new HashMap();
|
|
Map<String,Object> pointDataMap = new HashMap();
|
|
@@ -148,11 +158,11 @@ public class IndexService extends SocketToolService{
|
|
|
|
|
|
try {
|
|
try {
|
|
//平均风速
|
|
//平均风速
|
|
- PointData pjfs_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_SSFS).getCode());
|
|
|
|
|
|
+ PointData pjfs_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_PJFS).getCode());
|
|
|
|
+ pointDataMap.put("pjfs_real",pjfs_real);
|
|
pjfs = new BigDecimal(pjfs_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
pjfs = new BigDecimal(pjfs_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
- pointDataMap.put("pjfs_real",pjfs_real);
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
//平均风速min
|
|
//平均风速min
|
|
@@ -194,7 +204,19 @@ public class IndexService extends SocketToolService{
|
|
}
|
|
}
|
|
|
|
|
|
//预测风速
|
|
//预测风速
|
|
- ycfs=focastpowerService.focastspeed(windpowerstation.getId());
|
|
|
|
|
|
+ try{
|
|
|
|
+ if(windpowerstation.getId().equalsIgnoreCase("0")){
|
|
|
|
+ List<Windpowerstation> wps = InitialRunner.wpls;
|
|
|
|
+ for(Windpowerstation windpowerstationinner:wps){
|
|
|
|
+ ycfs = pjfs + 2;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ ycfs = pjfs + 2;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ catch(Exception e){
|
|
|
|
+ System.out.printf(e.getMessage());
|
|
|
|
+ }
|
|
|
|
|
|
//预测风速min
|
|
//预测风速min
|
|
try{
|
|
try{
|
|
@@ -237,10 +259,10 @@ public class IndexService extends SocketToolService{
|
|
try{
|
|
try{
|
|
//实际功率
|
|
//实际功率
|
|
PointData sjgl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_SJGL).getCode());
|
|
PointData sjgl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_SJGL).getCode());
|
|
|
|
+ pointDataMap.put("sjgl_real",sjgl_real);
|
|
sjgl = new BigDecimal(sjgl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
sjgl = new BigDecimal(sjgl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
- pointDataMap.put("sjgl_real",sjgl_real);
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
//实际功率min
|
|
//实际功率min
|
|
@@ -283,14 +305,13 @@ public class IndexService extends SocketToolService{
|
|
|
|
|
|
try{
|
|
try{
|
|
//理论功率
|
|
//理论功率
|
|
- PointData llgl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_ZZSGL).getCode());
|
|
|
|
- llgl =new BigDecimal(llgl_real.getPointValueInDouble()).divide(new BigDecimal(1000), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- double gfsjgl = mongodb.getRealData(stationPointmap.get("-2").get(Constant.TPOINT_WP_SJGL)).getPointValueInDouble();
|
|
|
|
- llgl=StringUtils.round(llgl+gfsjgl,2);
|
|
|
|
- //llgl = new BigDecimal(llgl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- pointDataMap.put("llgl_real",llgl_real);
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ PointData llgl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_ZLLGL).getCode());
|
|
|
|
+ //llgl = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ pointDataMap.put("llgl_real",llgl_real);
|
|
|
|
+ llgl =new BigDecimal(llgl_real.getPointValueInDouble()).divide(new BigDecimal(1000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
//理论功率min
|
|
//理论功率min
|
|
@@ -311,7 +332,9 @@ public class IndexService extends SocketToolService{
|
|
llglMin = llgl - 2;
|
|
llglMin = llgl - 2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ //llglMin =new BigDecimal(llglMin).divide(new BigDecimal(1000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+
|
|
|
|
+ }
|
|
catch(Exception e){
|
|
catch(Exception e){
|
|
System.out.printf(e.getMessage());
|
|
System.out.printf(e.getMessage());
|
|
}
|
|
}
|
|
@@ -326,27 +349,31 @@ public class IndexService extends SocketToolService{
|
|
}else{
|
|
}else{
|
|
llglMax = llgl + 2;
|
|
llglMax = llgl + 2;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// llglMax =new BigDecimal(llglMax).divide(new BigDecimal(1000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
}
|
|
}
|
|
catch(Exception e){
|
|
catch(Exception e){
|
|
System.out.printf(e.getMessage());
|
|
System.out.printf(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
pointDataMap.put("pjfs",pjfs);
|
|
pointDataMap.put("pjfs",pjfs);
|
|
- pointDataMap.put("pjfsMin",StringUtils.round(pjfsMin,2));
|
|
|
|
- pointDataMap.put("pjfsMax",StringUtils.round(pjfsMax,2));
|
|
|
|
|
|
+ pointDataMap.put("pjfsMin",pjfsMin);
|
|
|
|
+ pointDataMap.put("pjfsMax",pjfsMax);
|
|
pointDataMap.put("ycfs",ycfs);
|
|
pointDataMap.put("ycfs",ycfs);
|
|
- pointDataMap.put("ycfsMin",StringUtils.round(ycfsMin,2));
|
|
|
|
- pointDataMap.put("ycfsMax",StringUtils.round(ycfsMax,2));
|
|
|
|
|
|
+ pointDataMap.put("ycfsMin",ycfsMin);
|
|
|
|
+ pointDataMap.put("ycfsMax",ycfsMax);
|
|
pointDataMap.put("sjgl",sjgl);
|
|
pointDataMap.put("sjgl",sjgl);
|
|
- pointDataMap.put("sjglMin",StringUtils.round(sjglMin,2));
|
|
|
|
- pointDataMap.put("sjglMax",StringUtils.round(sjglMax,2));
|
|
|
|
|
|
+ pointDataMap.put("sjglMin",sjglMin);
|
|
|
|
+ pointDataMap.put("sjglMax",sjglMax);
|
|
pointDataMap.put("llgl",llgl);
|
|
pointDataMap.put("llgl",llgl);
|
|
- pointDataMap.put("llglMin",StringUtils.round(llglMin,2));
|
|
|
|
- pointDataMap.put("llglMax",StringUtils.round(llglMax,2));
|
|
|
|
|
|
+ pointDataMap.put("llglMin",llglMin);
|
|
|
|
+ pointDataMap.put("llglMax",llglMax);
|
|
windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
}
|
|
}
|
|
- this.pushToWeb("pageNumber_6","functionNumber_2",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
|
|
|
|
+ this.pushToWeb("pageNumber_6","functionNumber_2","all",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
}
|
|
}
|
|
|
|
|
|
public void index_windturbine_status() throws Exception{
|
|
public void index_windturbine_status() throws Exception{
|
|
@@ -359,7 +386,7 @@ public class IndexService extends SocketToolService{
|
|
windpowerstationAll.setId("0");
|
|
windpowerstationAll.setId("0");
|
|
wpls.add(windpowerstationAll);
|
|
wpls.add(windpowerstationAll);
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
-
|
|
|
|
|
|
+ IRealTimeDataBaseUtil mongodb= RealTimeDataBaseFactory.createRealTimeDataBase();
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
Map<String,Double> pointDataMap = new HashMap();
|
|
Map<String,Double> pointDataMap = new HashMap();
|
|
@@ -370,12 +397,13 @@ public class IndexService extends SocketToolService{
|
|
double wh = 0;
|
|
double wh = 0;
|
|
double lx = 0;
|
|
double lx = 0;
|
|
|
|
|
|
- try {
|
|
|
|
- //待机
|
|
|
|
|
|
+ try { //待机
|
|
|
|
+ //待机
|
|
|
|
+ /*//System.out.println(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_DJTS).getCode());*/
|
|
PointData rfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_DJTS).getCode());
|
|
PointData rfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_DJTS).getCode());
|
|
dj = new BigDecimal(rfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
dj = new BigDecimal(rfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -383,16 +411,16 @@ public class IndexService extends SocketToolService{
|
|
PointData aqts_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_YXTS).getCode());
|
|
PointData aqts_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_YXTS).getCode());
|
|
yx = new BigDecimal(aqts_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
yx = new BigDecimal(aqts_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
try{
|
|
try{
|
|
- //故障
|
|
|
|
|
|
+ //上网电量
|
|
PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_GZTJ).getCode());
|
|
PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_GZTJ).getCode());
|
|
gz = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
gz = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
try{
|
|
try{
|
|
@@ -400,7 +428,7 @@ public class IndexService extends SocketToolService{
|
|
PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_WHTJ).getCode());
|
|
PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_WHTJ).getCode());
|
|
wh = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
wh = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
try{
|
|
try{
|
|
@@ -408,7 +436,7 @@ public class IndexService extends SocketToolService{
|
|
PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_TXZD).getCode());
|
|
PointData swdl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WT_TXZD).getCode());
|
|
lx = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
lx = new BigDecimal(swdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -425,7 +453,7 @@ public class IndexService extends SocketToolService{
|
|
}
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- System.out.println(e.getMessage());
|
|
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
pointDataMap.put("jr",jr);
|
|
pointDataMap.put("jr",jr);
|
|
pointDataMap.put("dj",dj);
|
|
pointDataMap.put("dj",dj);
|
|
@@ -435,181 +463,185 @@ public class IndexService extends SocketToolService{
|
|
pointDataMap.put("lx",lx);
|
|
pointDataMap.put("lx",lx);
|
|
windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
}
|
|
}
|
|
- this.pushToWeb("pageNumber_6","functionNumber_3",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
|
|
|
|
+ this.pushToWeb("pageNumber_6","functionNumber_3","all",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public void index_electricQuantity() throws Exception{
|
|
public void index_electricQuantity() throws Exception{
|
|
Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = InitialRunner.stationPointmap;
|
|
Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = InitialRunner.stationPointmap;
|
|
- List<Windpowerstation> wpls = new ArrayList<>();
|
|
|
|
- for(Windpowerstation wp:InitialRunner.wpls){
|
|
|
|
- wpls.add(wp);
|
|
|
|
- }
|
|
|
|
- Windpowerstation windpowerstationAll = new Windpowerstation();
|
|
|
|
- windpowerstationAll.setId("0");
|
|
|
|
- wpls.add(windpowerstationAll);
|
|
|
|
- Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- for(Windpowerstation windpowerstation:wpls){
|
|
|
|
- Map<String,Double> pointDataMap = new HashMap();
|
|
|
|
- double yfdl = 0;
|
|
|
|
- double nfdl = 0;
|
|
|
|
- double yjhfdl = 0;
|
|
|
|
- double njhfdl = 0;
|
|
|
|
- try {
|
|
|
|
- //月发电量
|
|
|
|
- PointData yfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_YFDL).getCode());
|
|
|
|
- yfdl = new BigDecimal(yfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- // yfdl =new BigDecimal(yfdl_real.getPointValueInDouble()).divide(new BigDecimal(10000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
-
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- try {
|
|
|
|
- //年发电量
|
|
|
|
- PointData nfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_NFDL).getCode());
|
|
|
|
- nfdl = new BigDecimal(nfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- //nfdl =new BigDecimal(nfdl_real.getPointValueInDouble()).divide(new BigDecimal(10000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
-
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- yjhfdl=projectplanService.planMonthPower(windpowerstation.getId());
|
|
|
|
- njhfdl=projectplanService.planYearPower(windpowerstation.getId());
|
|
|
|
- pointDataMap.put("yfdl",yfdl);
|
|
|
|
- pointDataMap.put("nfdl",nfdl);
|
|
|
|
- pointDataMap.put("yjhfdl",yjhfdl);
|
|
|
|
- pointDataMap.put("njhfdl",njhfdl);
|
|
|
|
- windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
|
|
- }
|
|
|
|
- this.pushToWeb("pageNumber_6","functionNumber_4",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
|
|
|
|
+ List<Windpowerstation> wpls = new ArrayList<>();
|
|
|
|
+ for(Windpowerstation wp:InitialRunner.wpls){
|
|
|
|
+ wpls.add(wp);
|
|
|
|
+ }
|
|
|
|
+ Windpowerstation windpowerstationAll = new Windpowerstation();
|
|
|
|
+ windpowerstationAll.setId("0");
|
|
|
|
+ wpls.add(windpowerstationAll);
|
|
|
|
+ Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
|
+ IRealTimeDataBaseUtil mongodb= RealTimeDataBaseFactory.createRealTimeDataBase();
|
|
|
|
+
|
|
|
|
+ for(Windpowerstation windpowerstation:wpls){
|
|
|
|
+ Map<String,Double> pointDataMap = new HashMap();
|
|
|
|
+ double yfdl = 0;
|
|
|
|
+ double nfdl = 0;
|
|
|
|
+ double yjhfdl = 0;
|
|
|
|
+ double njhfdl = 0;
|
|
|
|
+ try {
|
|
|
|
+ //月发电量
|
|
|
|
+ PointData yfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_YFDL).getCode());
|
|
|
|
+ yfdl = new BigDecimal(yfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ // yfdl =new BigDecimal(yfdl_real.getPointValueInDouble()).divide(new BigDecimal(10000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ //年发电量
|
|
|
|
+ PointData nfdl_real = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_NFDL).getCode());
|
|
|
|
+ nfdl = new BigDecimal(nfdl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ //nfdl =new BigDecimal(nfdl_real.getPointValueInDouble()).divide(new BigDecimal(10000), decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ yjhfdl=projectplanService.planMonthPower(windpowerstation.getId());
|
|
|
|
+ njhfdl=projectplanService.planYearPower(windpowerstation.getId());
|
|
|
|
+ pointDataMap.put("yfdl",yfdl);
|
|
|
|
+ pointDataMap.put("nfdl",nfdl);
|
|
|
|
+ pointDataMap.put("yjhfdl",yjhfdl);
|
|
|
|
+ pointDataMap.put("njhfdl",njhfdl);
|
|
|
|
+ windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
|
|
+ }
|
|
|
|
+ this.pushToWeb("pageNumber_6","functionNumber_4","all",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public void index_target_basic_indicators() throws Exception{
|
|
public void index_target_basic_indicators() throws Exception{
|
|
Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = InitialRunner.stationPointmap;
|
|
Map<String, Map<String, WindPowerStationTestingPoint2>> stationPointmap = InitialRunner.stationPointmap;
|
|
- List<Windpowerstation> wpls = new ArrayList<>();
|
|
|
|
- for(Windpowerstation wp:InitialRunner.wpls){
|
|
|
|
- wpls.add(wp);
|
|
|
|
- }
|
|
|
|
- Windpowerstation windpowerstationAll = new Windpowerstation();
|
|
|
|
- windpowerstationAll.setId("0");
|
|
|
|
- wpls.add(windpowerstationAll);
|
|
|
|
- Map<String,Map<String,Object>> windpowerstationpointDataMap = new HashMap();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- for(Windpowerstation windpowerstation:wpls){
|
|
|
|
- Map<String,Object> pointDataMap = new HashMap();
|
|
|
|
- double mttr = 99;
|
|
|
|
- double mtbf = 99;
|
|
|
|
- double jybm = 99;
|
|
|
|
- double jpeyhl = 99;
|
|
|
|
- double ylyxs = 99;
|
|
|
|
- double nlyxs = 99;
|
|
|
|
- double jyys = 99;
|
|
|
|
- double zhcydl = 99;
|
|
|
|
- double sbklyl = 99;
|
|
|
|
- double jpeyht = 99;
|
|
|
|
- double zjrl=0.0;
|
|
|
|
-
|
|
|
|
- if(windpowerstation.getCapacity()==null){
|
|
|
|
- List<Windpowerstation> wps = InitialRunner.wpls;
|
|
|
|
- for(Windpowerstation windpowerstationinner:wps){
|
|
|
|
- zjrl = zjrl + windpowerstationinner.getCapacity();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- zjrl = windpowerstation.getCapacity();
|
|
|
|
- }
|
|
|
|
- //mttr
|
|
|
|
- mttr = jybm + 10;
|
|
|
|
-
|
|
|
|
- //mtbf
|
|
|
|
- mtbf = jpeyht + 12;
|
|
|
|
-
|
|
|
|
- try{
|
|
|
|
- //节约标煤
|
|
|
|
- PointData jybm_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JYBM).getCode());
|
|
|
|
- jybm = new BigDecimal(jybm_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- pointDataMap.put("jybm_real",jybm_real);
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- try{
|
|
|
|
- //减排二氧化硫
|
|
|
|
- PointData jpeyhl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JPEYHL).getCode());
|
|
|
|
- jpeyhl = new BigDecimal(jpeyhl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
-
|
|
|
|
- pointDataMap.put("jpeyhl_real",jpeyhl_real);
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- try{
|
|
|
|
- //节约用水
|
|
|
|
- PointData jyys_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JYS).getCode());
|
|
|
|
- jyys = new BigDecimal(jyys_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- pointDataMap.put("jyys_real",jyys_real);
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- Calendar c = Calendar.getInstance();
|
|
|
|
- Windpowerinfoday wp=windpowerinfodayService.findListByDate(windpowerstation.getId(),c.getTime());
|
|
|
|
- if(StringUtils.isNotNull(wp))
|
|
|
|
- {
|
|
|
|
- ylyxs=wp.getMonthlyxs();
|
|
|
|
- nlyxs=wp.getYearlyxs();
|
|
|
|
- //综合场用电率
|
|
|
|
- zhcydl=wp.getDayzhcydl();
|
|
|
|
- //设备可利用率
|
|
|
|
- sbklyl=wp.getDaysbklyl();
|
|
|
|
-// System.out.println(wp.getRecorddate()+ "___" +wp.getMonthlyxs());
|
|
|
|
-// System.out.println(wp.getRecorddate()+ "___" +wp.getYearlyxs());
|
|
|
|
-// System.out.println(wp.getRecorddate()+ "___" +wp.getDayzhcydl());
|
|
|
|
-// System.out.println(wp.getRecorddate()+ "___" +wp.getDaysbklyl());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 月利用小时
|
|
|
|
- double temp = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_YFDL)).getPointValueInDouble();
|
|
|
|
- ylyxs = (new BigDecimal(temp).multiply(new BigDecimal(10))).divide(new BigDecimal(zjrl), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- // 年利用小时
|
|
|
|
- temp = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_NFDL)).getPointValueInDouble();
|
|
|
|
- nlyxs = (new BigDecimal(temp).multiply(new BigDecimal(10))).divide(new BigDecimal(zjrl), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- try{
|
|
|
|
- //减排二氧化碳
|
|
|
|
- PointData jpeyht_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JPEYHT).getCode());
|
|
|
|
- jpeyht = new BigDecimal(jpeyht_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
- pointDataMap.put("jpeyht_real",jpeyht_real);
|
|
|
|
- }catch (Exception e){
|
|
|
|
- System.out.println(e.getMessage());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- pointDataMap.put("mttr",mttr);
|
|
|
|
- pointDataMap.put("mtbf",mtbf);
|
|
|
|
-
|
|
|
|
- pointDataMap.put("ylyxs",ylyxs);
|
|
|
|
- pointDataMap.put("nlyxs",nlyxs);
|
|
|
|
-
|
|
|
|
- pointDataMap.put("zhcydl",zhcydl);
|
|
|
|
- pointDataMap.put("sbklyl",sbklyl);
|
|
|
|
-
|
|
|
|
- pointDataMap.put("jybm",jybm);
|
|
|
|
- pointDataMap.put("jpeyhl",jpeyhl);
|
|
|
|
- pointDataMap.put("jyys",jyys);
|
|
|
|
- pointDataMap.put("jpeyht",jpeyht);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
|
|
- }
|
|
|
|
- this.pushToWeb("pageNumber_6","functionNumber_5",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
|
|
|
|
+ List<Windpowerstation> wpls = new ArrayList<>();
|
|
|
|
+ for(Windpowerstation wp:InitialRunner.wpls){
|
|
|
|
+ wpls.add(wp);
|
|
|
|
+ }
|
|
|
|
+ Windpowerstation windpowerstationAll = new Windpowerstation();
|
|
|
|
+ windpowerstationAll.setId("0");
|
|
|
|
+ wpls.add(windpowerstationAll);
|
|
|
|
+ Map<String,Map<String,Object>> windpowerstationpointDataMap = new HashMap();
|
|
|
|
+ IRealTimeDataBaseUtil mongodb= RealTimeDataBaseFactory.createRealTimeDataBase();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ for(Windpowerstation windpowerstation:wpls){
|
|
|
|
+ Map<String,Object> pointDataMap = new HashMap();
|
|
|
|
+ double mttr = 99;
|
|
|
|
+ double mtbf = 99;
|
|
|
|
+ double jybm = 99;
|
|
|
|
+ double jpeyhl = 99;
|
|
|
|
+ double ylyxs = 99;
|
|
|
|
+ double nlyxs = 99;
|
|
|
|
+ double jyys = 99;
|
|
|
|
+ double zhcydl = 99;
|
|
|
|
+ double sbklyl = 99;
|
|
|
|
+ double jpeyht = 99;
|
|
|
|
+ double zjrl=0.0;
|
|
|
|
+
|
|
|
|
+ if(windpowerstation.getCapacity()==null){
|
|
|
|
+ List<Windpowerstation> wps = InitialRunner.wpls;
|
|
|
|
+ for(Windpowerstation windpowerstationinner:wps){
|
|
|
|
+ zjrl = zjrl + windpowerstationinner.getCapacity();
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ zjrl = windpowerstation.getCapacity();
|
|
|
|
+ }
|
|
|
|
+ //mttr
|
|
|
|
+ mttr = jybm + 10;
|
|
|
|
+
|
|
|
|
+ //mtbf
|
|
|
|
+ mtbf = jpeyht + 12;
|
|
|
|
+
|
|
|
|
+ try{
|
|
|
|
+ //节约标煤
|
|
|
|
+ PointData jybm_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JYBM).getCode());
|
|
|
|
+ jybm = new BigDecimal(jybm_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ pointDataMap.put("jybm_real",jybm_real);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ try{
|
|
|
|
+ //减排二氧化硫
|
|
|
|
+ PointData jpeyhl_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JPEYHL).getCode());
|
|
|
|
+ jpeyhl = new BigDecimal(jpeyhl_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+
|
|
|
|
+ pointDataMap.put("jpeyhl_real",jpeyhl_real);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ try{
|
|
|
|
+ //节约用水
|
|
|
|
+ PointData jyys_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JYS).getCode());
|
|
|
|
+ jyys = new BigDecimal(jyys_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ pointDataMap.put("jyys_real",jyys_real);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Calendar c = Calendar.getInstance();
|
|
|
|
+ Windpowerinfoday wp=windpowerinfodayService.findListByDate(windpowerstation.getId(),c.getTime());
|
|
|
|
+ if(StringUtils.isNotNull(wp))
|
|
|
|
+ {
|
|
|
|
+ ylyxs=wp.getMonthlyxs();
|
|
|
|
+ nlyxs=wp.getYearlyxs();
|
|
|
|
+ //综合场用电率
|
|
|
|
+ zhcydl=wp.getDayzhcydl();
|
|
|
|
+ //设备可利用率
|
|
|
|
+ sbklyl=wp.getDaysbklyl();
|
|
|
|
+ ylyxs=wp.getMonthlyxs();
|
|
|
|
+ nlyxs=wp.getYearlyxs();
|
|
|
|
+// //System.out.println(wp.getRecorddate()+ "___" +wp.getMonthlyxs());
|
|
|
|
+// //System.out.println(wp.getRecorddate()+ "___" +wp.getYearlyxs());
|
|
|
|
+// //System.out.println(wp.getRecorddate()+ "___" +wp.getDayzhcydl());
|
|
|
|
+// //System.out.println(wp.getRecorddate()+ "___" +wp.getDaysbklyl());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+// // 月利用小时
|
|
|
|
+// double temp = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_YFDL).getCode()).getPointValueInDouble();
|
|
|
|
+// ylyxs = (new BigDecimal(temp).multiply(new BigDecimal(10))).divide(new BigDecimal(zjrl), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+// // 年利用小时
|
|
|
|
+// temp = mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_WP_NFDL).getCode()).getPointValueInDouble();
|
|
|
|
+// nlyxs = (new BigDecimal(temp).multiply(new BigDecimal(10))).divide(new BigDecimal(zjrl), 2, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+//
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ try{
|
|
|
|
+ //减排二氧化碳
|
|
|
|
+ PointData jpeyht_real=mongodb.getRealData(stationPointmap.get(windpowerstation.getId()).get(Constant.TPOINT_JPEYHT).getCode());
|
|
|
|
+ jpeyht = new BigDecimal(jpeyht_real.getPointValueInDouble()).setScale(decimal_digit, RoundingMode.HALF_EVEN).doubleValue();
|
|
|
|
+ pointDataMap.put("jpeyht_real",jpeyht_real);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ //System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ pointDataMap.put("mttr",mttr);
|
|
|
|
+ pointDataMap.put("mtbf",mtbf);
|
|
|
|
+
|
|
|
|
+ pointDataMap.put("ylyxs",ylyxs);
|
|
|
|
+ pointDataMap.put("nlyxs",nlyxs);
|
|
|
|
+
|
|
|
|
+ pointDataMap.put("zhcydl",zhcydl);
|
|
|
|
+ pointDataMap.put("sbklyl",sbklyl);
|
|
|
|
+
|
|
|
|
+ pointDataMap.put("jybm",jybm);
|
|
|
|
+ pointDataMap.put("jpeyhl",jpeyhl);
|
|
|
|
+ pointDataMap.put("jyys",jyys);
|
|
|
|
+ pointDataMap.put("jpeyht",jpeyht);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ windpowerstationpointDataMap.put(windpowerstation.getId(),pointDataMap);
|
|
|
|
+ }
|
|
|
|
+ this.pushToWeb("pageNumber_6","functionNumber_5","all",windpowerstationpointDataMap, Messagetype.MESSAGE);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
}
|
|
}
|