|
@@ -1,5 +1,6 @@
|
|
package com.gyee.frame.service.app.windpowerstationdetail;
|
|
package com.gyee.frame.service.app.windpowerstationdetail;
|
|
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
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.WindPowerstationTestingPoint;
|
|
import com.gyee.frame.model.auto.WindPowerstationTestingPoint;
|
|
@@ -7,6 +8,7 @@ import com.gyee.frame.model.auto.Windpowerstation;
|
|
import com.gyee.frame.model.custom.PointData;
|
|
import com.gyee.frame.model.custom.PointData;
|
|
import com.gyee.frame.model.enumeration.Messagetype;
|
|
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.util.BeanUtils;
|
|
import com.gyee.frame.util.DateUtils;
|
|
import com.gyee.frame.util.DateUtils;
|
|
import com.gyee.frame.util.StringUtils;
|
|
import com.gyee.frame.util.StringUtils;
|
|
import com.gyee.frame.util.mongodb.IMongodbUtil;
|
|
import com.gyee.frame.util.mongodb.IMongodbUtil;
|
|
@@ -34,10 +36,13 @@ public class WindpowerstationdetailService extends SocketToolService {
|
|
private InitialRunner initialRunner;
|
|
private InitialRunner initialRunner;
|
|
private static int decimal_digit = 0;
|
|
private static int decimal_digit = 0;
|
|
|
|
|
|
- public void comprehensive_target() throws Exception {
|
|
|
|
|
|
+ public void windpowerstationdetail_comprehensive_target() throws Exception {
|
|
|
|
|
|
Map<String, Map<String, WindPowerstationTestingPoint>> stationPointmap = InitialRunner.stationPointmap;
|
|
Map<String, Map<String, WindPowerstationTestingPoint>> stationPointmap = InitialRunner.stationPointmap;
|
|
- List<Windpowerstation> wpls = InitialRunner.wpls;
|
|
|
|
|
|
+ List<Windpowerstation> wpls = new ArrayList<>();
|
|
|
|
+ for(Windpowerstation wp:InitialRunner.wpls){
|
|
|
|
+ wpls.add(wp);
|
|
|
|
+ }
|
|
Windpowerstation windpowerstationAll = new Windpowerstation();
|
|
Windpowerstation windpowerstationAll = new Windpowerstation();
|
|
windpowerstationAll.setId("0");
|
|
windpowerstationAll.setId("0");
|
|
wpls.add(windpowerstationAll);
|
|
wpls.add(windpowerstationAll);
|
|
@@ -80,7 +85,20 @@ public class WindpowerstationdetailService extends SocketToolService {
|
|
//预测发电量
|
|
//预测发电量
|
|
ycfdl = swdl+12;
|
|
ycfdl = swdl+12;
|
|
//装机容量
|
|
//装机容量
|
|
- zjrl = 130;
|
|
|
|
|
|
+ try{
|
|
|
|
+ //上网电量
|
|
|
|
+ if(windpowerstation.getCapacity()==null){
|
|
|
|
+ List<Windpowerstation> wps = InitialRunner.wpls;
|
|
|
|
+ for(Windpowerstation windpowerstationinner:wps){
|
|
|
|
+ zjrl = zjrl + windpowerstationinner.getCapacity();
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ zjrl = windpowerstation.getCapacity();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ System.out.println(e.getMessage());
|
|
|
|
+ }
|
|
pointDataMap.put("rfdl",rfdl);
|
|
pointDataMap.put("rfdl",rfdl);
|
|
pointDataMap.put("aqts",aqts);
|
|
pointDataMap.put("aqts",aqts);
|
|
pointDataMap.put("swdl",swdl);
|
|
pointDataMap.put("swdl",swdl);
|