|
@@ -3,11 +3,10 @@ package com.gyee.frame.service.websocket;
|
|
|
|
|
|
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.Equipmentmodel;
|
|
|
|
-import com.gyee.frame.model.auto.WindTurbineInfoDay;
|
|
|
|
-import com.gyee.frame.model.auto.Windturbine;
|
|
|
|
|
|
+import com.gyee.frame.model.auto.*;
|
|
import com.gyee.frame.model.custom.PointData;
|
|
import com.gyee.frame.model.custom.PointData;
|
|
import com.gyee.frame.service.WindTurbineTestingPointAiService;
|
|
import com.gyee.frame.service.WindTurbineTestingPointAiService;
|
|
|
|
+import com.gyee.frame.service.WindTurbineTestingPointDiService;
|
|
import com.gyee.frame.service.WindturbineinfodayService;
|
|
import com.gyee.frame.service.WindturbineinfodayService;
|
|
import com.gyee.frame.util.DateUtils;
|
|
import com.gyee.frame.util.DateUtils;
|
|
import com.gyee.frame.util.IRealTimeDataBaseUtil;
|
|
import com.gyee.frame.util.IRealTimeDataBaseUtil;
|
|
@@ -22,7 +21,8 @@ import java.util.*;
|
|
@Service
|
|
@Service
|
|
public class WtInfoPushService {
|
|
public class WtInfoPushService {
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private WindTurbineTestingPointDiService windTurbineTestingPointDiService;
|
|
@Resource
|
|
@Resource
|
|
private WindTurbineTestingPointAiService windTurbineTestingPointAiService;
|
|
private WindTurbineTestingPointAiService windTurbineTestingPointAiService;
|
|
|
|
|
|
@@ -53,240 +53,546 @@ public class WtInfoPushService {
|
|
|
|
|
|
Windturbine wt = InitialRunner.wtmap.get(id);
|
|
Windturbine wt = InitialRunner.wtmap.get(id);
|
|
|
|
|
|
- map.put("model",wt.getModelid());
|
|
|
|
- map.put("wpid",wt.getWindpowerstationid());
|
|
|
|
- map.put("pjid",wt.getProjectid());
|
|
|
|
- map.put("lnid",wt.getLineid());
|
|
|
|
|
|
+ map.put("model", wt.getModelid());
|
|
|
|
+ map.put("wpid", wt.getWindpowerstationid());
|
|
|
|
+ map.put("pjid", wt.getProjectid());
|
|
|
|
+ map.put("lnid", wt.getLineid());
|
|
|
|
|
|
Double sjgl = 0.0;
|
|
Double sjgl = 0.0;
|
|
Double bzgl = 0.0;
|
|
Double bzgl = 0.0;
|
|
Double yfgl = 0.0;
|
|
Double yfgl = 0.0;
|
|
|
|
|
|
-/*************************************************基础指标*************************************************************/
|
|
|
|
|
|
+/*************************************************变桨*************************************************************/
|
|
|
|
|
|
|
|
|
|
- Map<String, Double> jczbmap = new HashMap<>();
|
|
|
|
|
|
+ Map<String, Double> bjmap = new HashMap<>();
|
|
|
|
|
|
|
|
+ if (wt.getWindpowerstationid().equals(QS_FDC)) {
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_RYBMQ1, "RYBMQ1");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_RYBMQ2, "RYBMQ2");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_RYBMQ3, "RYBMQ3");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_BJSD1, "BJSD1");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_BJSD2, "BJSD2");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_BJSD3, "BJSD3");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.QSTPOINT_WT_U1YZDL, "U1YZDL");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.QSTPOINT_WT_U2YZDL, "U2YZDL");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.QSTPOINT_WT_U3YZDL, "U3YZDL");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.QSTPOINT_WT_U1YZDY, "U1YZDY");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.QSTPOINT_WT_U2YZDY, "U2YZDY");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.QSTPOINT_WT_U3YZDY, "U3YZDY");
|
|
|
|
+ } else {
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_RYBMQ1, "RYBMQ1");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_RYBMQ2, "RYBMQ2");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_RYBMQ3, "RYBMQ3");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_BJSD1, "BJSD1");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_BJSD2, "BJSD2");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_BJSD3, "BJSD3");
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_U1YZDL, "U1YZDL");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_U2YZDL, "U2YZDL");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_U3YZDL, "U3YZDL");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_U1YZDY, "U1YZDY");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_U2YZDY, "U2YZDY");
|
|
|
|
+ totalWtAiPointMap(bjmap, id, Constant.TPOINT_WT_U3YZDY, "U3YZDY");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Map<String, String> namemap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ List<String> unicodels = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YP1XW91);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YP2XW91);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YP3XW91);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YP1XW95);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YP2XW95);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YP3XW95);
|
|
|
|
+
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YP1XW91, "YP1XW91");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YP2XW91, "YP2XW91");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YP3XW91, "YP3XW91");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YP1XW95, "YP1XW95");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YP2XW95, "YP2XW95");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YP3XW95, "YP3XW95");
|
|
|
|
+
|
|
|
|
+ List<WindTurbineTestingPointDi2> list = windTurbineTestingPointDiService.getWindTurbineTestingPointDi2List(id, unicodels);
|
|
|
|
+
|
|
|
|
+ if (!list.isEmpty()) {
|
|
|
|
+
|
|
|
|
+ for (WindTurbineTestingPointDi2 di : list) {
|
|
|
|
+ if (namemap.containsKey(di.getUniformcode())) {
|
|
|
|
+ totalWtDiPointMap(bjmap, di.getId(), namemap.get(di.getUniformcode()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ map.put("bjmap", bjmap);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************变桨*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************齿轮箱*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ Map<String, Double> clxmap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(clxmap, id, Constant.TPOINT_WT_RHYLWRKYL, "RHYLWRKYL");
|
|
|
|
+ totalWtAiPointMap(clxmap, id, Constant.TPOINT_WT_RHYLWCKYL, "RHYLWCKYL");
|
|
|
|
+ totalWtAiPointMap(clxmap, id, Constant.TPOINT_WT_CLXSRZ1WD, "CLXSRZ1WD");
|
|
|
|
+ totalWtAiPointMap(clxmap, id, Constant.TPOINT_WT_CLXRHYJRBH, "CLXRHYJRBH");
|
|
|
|
+ totalWtAiPointMap(clxmap, id, Constant.TPOINT_WT_CLXRHYLWYC, "CLXRHYLWYC");
|
|
|
|
+ totalWtAiPointMap(clxmap, id, Constant.TPOINT_WT_CLXRKYW, "CLXRKYW");
|
|
|
|
+
|
|
|
|
+ namemap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ unicodels = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXYW);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXRHYYL);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXRHBDJBH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXRHYJRBH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXRHYLWYC);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXYJRQBH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDCLXRHJRQ);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDCLXRHGSBA);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDCLXRHGSBB);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDCLXYBJRQ);
|
|
|
|
+
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXYW, "CLXYW");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXRHYYL, "CLXRHYYL");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXRHBDJBH, "CLXRHBDJBH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXRHYJRBH, "CLXRHYJRBH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXRHYLWYC, "CLXRHYLWYC");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXYJRQBH, "CLXYJRQBH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDCLXRHJRQ, "QDCLXRHJRQ");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDCLXRHGSBA, "QDCLXRHGSBA");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDCLXRHGSBB, "QDCLXRHGSBB");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDCLXYBJRQ, "QDCLXYBJRQ");
|
|
|
|
+
|
|
|
|
+ list = windTurbineTestingPointDiService.getWindTurbineTestingPointDi2List(id, unicodels);
|
|
|
|
+
|
|
|
|
+ if (!list.isEmpty()) {
|
|
|
|
+
|
|
|
|
+ for (WindTurbineTestingPointDi2 di : list) {
|
|
|
|
+ if (namemap.containsKey(di.getUniformcode())) {
|
|
|
|
+ totalWtDiPointMap(clxmap, di.getId(), namemap.get(di.getUniformcode()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ map.put("clxmap", clxmap);
|
|
|
|
|
|
- List<String> jczbls = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
+/*************************************************齿轮箱*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************发电机*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ Map<String, Double> fdjmap = new HashMap<>();
|
|
|
|
|
|
- // 2MW风机转速上传的数据单位是rad/s,我们系统应该显示的是rpm,所以显示的时候应该加上公式 1rad/s =9.55rpm
|
|
|
|
if (wt.getWindpowerstationid().equals(QS_FDC)) {
|
|
if (wt.getWindpowerstationid().equals(QS_FDC)) {
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_BJJD1).getId());// 变桨角度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_PHWZ).getId());// 偏航角度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U1YZDL).getId());// 电流1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U2YZDL).getId());// 电流2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U3YZDL).getId());// 电流3
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U1YZDY).getId());// 电压1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U2YZDY).getId());// 电压2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U3YZDY).getId());// 电压3
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_FDJZS).getId());// 发电机转速
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_U1YZWD).getId());// 温度1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_V1YZWD).getId());// 温度2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_W1YZWD).getId());// 温度3
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.QSTPOINT_WT_U1YZWD, "U1YZWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.QSTPOINT_WT_V1YZWD, "V1YZWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.QSTPOINT_WT_W1YZWD, "W1YZWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_FDJZCAWD, "FDJZCAWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_FDJZCBWD, "FDJZCBWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_FDJLQFWD, "FDJLQFWD");
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_BJJD1).getId());// 变桨角度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_PHWZ).getId());// 偏航角度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U1YZDL).getId());// 电流1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U2YZDL).getId());// 电流2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U3YZDL).getId());// 电流3
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U1YZDY).getId());// 电压1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U2YZDY).getId());// 电压2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U3YZDY).getId());// 电压3
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FDJZS).getId());// 发电机转速
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_U1YZWD).getId());// 温度1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_V1YZWD).getId());// 温度2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_W1YZWD).getId());// 温度3
|
|
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_U1YZWD, "U1YZWD ");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_V1YZWD, "V1YZWD ");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_W1YZWD, "W1YZWD ");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_FDJZCAWD, "FDJZCAWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_FDJZCBWD, "FDJZCBWD");
|
|
|
|
+ totalWtAiPointMap(fdjmap, id, Constant.TPOINT_WT_FDJLQFWD, "FDJLQFWD");
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
- List<PointData> jczblist = realApiUtil.getRealData(jczbls);
|
|
|
|
|
|
+ namemap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ unicodels = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_FDJJRQBHZC);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDFDJJRQ);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_FDJDSMS);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDKLFS1);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDKLFS2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_KLFSBH1);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_KLFSBH2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDSLFS1);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDSLFSBH1);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_LQSYL);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_FDJRHYBYW);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_QDFDJRHYB);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_FDJJRQBHZC, "FDJJRQBHZC");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDFDJJRQ, "QDFDJJRQ");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_FDJDSMS, "FDJDSMS");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDKLFS1, "QDKLFS1");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDKLFS2, "QDKLFS2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_KLFSBH1, "KLFSBH1");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_KLFSBH2, "KLFSBH2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDSLFS1, "QDSLFS1");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDSLFSBH1, "QDSLFSBH1");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_LQSYL, "LQSYL");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_FDJRHYBYW, "FDJRHYBYW");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_QDFDJRHYB, "QDFDJRHYB");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ list = windTurbineTestingPointDiService.getWindTurbineTestingPointDi2List(id, unicodels);
|
|
|
|
+
|
|
|
|
+ if (!list.isEmpty()) {
|
|
|
|
+
|
|
|
|
+ for (WindTurbineTestingPointDi2 di : list) {
|
|
|
|
+ if (namemap.containsKey(di.getUniformcode())) {
|
|
|
|
+ totalWtDiPointMap(fdjmap, di.getId(), namemap.get(di.getUniformcode()));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- if (!jczblist.isEmpty() && jczblist.size() == jczbls.size()) {
|
|
|
|
|
|
+ map.put("fdjmap", fdjmap);
|
|
|
|
|
|
|
|
|
|
- jczbmap.put("bjjd", MathUtil.twoBit(jczblist.get(0).getPointValueInDouble()));// 变桨角度
|
|
|
|
- jczbmap.put("phjd", MathUtil.twoBit(jczblist.get(1).getPointValueInDouble()));// 偏航角度
|
|
|
|
- jczbmap.put("dl1", MathUtil.twoBit(jczblist.get(2).getPointValueInDouble()));// 电流1
|
|
|
|
- jczbmap.put("dl2", MathUtil.twoBit(jczblist.get(3).getPointValueInDouble()));// 电流2
|
|
|
|
- jczbmap.put("dl3", MathUtil.twoBit(jczblist.get(4).getPointValueInDouble()));// 电流3
|
|
|
|
- jczbmap.put("dy1", MathUtil.twoBit(jczblist.get(5).getPointValueInDouble()));// 电压1
|
|
|
|
- jczbmap.put("dy2", MathUtil.twoBit(jczblist.get(6).getPointValueInDouble()));// 电压2
|
|
|
|
- jczbmap.put("dy3", MathUtil.twoBit(jczblist.get(7).getPointValueInDouble()));// 电压3
|
|
|
|
- jczbmap.put("wd1", MathUtil.twoBit(jczblist.get(8).getPointValueInDouble()));// 温度1
|
|
|
|
- jczbmap.put("wd2", MathUtil.twoBit(jczblist.get(9).getPointValueInDouble()));// 温度2
|
|
|
|
- jczbmap.put("wd3", MathUtil.twoBit(jczblist.get(10).getPointValueInDouble()));// 温度3
|
|
|
|
|
|
+/*************************************************发电机*************************************************************/
|
|
|
|
|
|
- Double fdjzs = MathUtil.twoBit(jczblist.get(11).getPointValueInDouble());
|
|
|
|
|
|
+/*************************************************偏航*************************************************************/
|
|
|
|
|
|
- if (InitialRunner.mlmap.containsKey(wt.getModelid())) {
|
|
|
|
- Equipmentmodel model = InitialRunner.mlmap.get(wt.getModelid());
|
|
|
|
|
|
|
|
|
|
+ Map<String, Double> phmap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ if (wt.getWindpowerstationid().equals(QS_FDC)) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(phmap, id, Constant.TPOINT_WT_DFJD, "DFJD");
|
|
|
|
+ totalWtAiPointMap(phmap, id, Constant.QSTPOINT_WT_PHWZ, "PHWZ");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ totalWtAiPointMap(phmap, id, Constant.TPOINT_WT_DFJD, "DFJD");
|
|
|
|
+ totalWtAiPointMap(phmap, id, Constant.TPOINT_WT_PHWZ, "PHWZ");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ namemap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ unicodels = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHZJX);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHYJX);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHRQDQZC);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_ZPHDZ);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHDSCDK);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YPHDZ);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHRQDQDZ);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHRQDQSN);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHBMQZL);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_JLDZ);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHCGQMTOK);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHCGQOK);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHZCRHYW);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHRHBZCBH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHDJ1BH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHDJ2BH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHDJ3BH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_PHDJ4BH);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHZJX, "PHZJX");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHYJX, "PHYJX");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHRQDQZC, "PHRQDQZC");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_ZPHDZ, "ZPHDZ");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHDSCDK, "PHDSCDK");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YPHDZ, "YPHDZ");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHRQDQDZ, "PHRQDQDZ");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHRQDQSN, "PHRQDQSN");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHBMQZL, "PHBMQZL");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_JLDZ, "JLDZ");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHCGQMTOK, "PHCGQMTOK");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHCGQOK, "PHCGQOK");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHZCRHYW, "PHZCRHYW");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHRHBZCBH, "PHRHBZCBH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHDJ1BH, "PHDJ1BH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHDJ2BH, "PHDJ2BH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHDJ3BH, "PHDJ3BH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_PHDJ4BH, "PHDJ4BH");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ list = windTurbineTestingPointDiService.getWindTurbineTestingPointDi2List(id, unicodels);
|
|
|
|
+
|
|
|
|
+ if (!list.isEmpty()) {
|
|
|
|
+
|
|
|
|
+ for (WindTurbineTestingPointDi2 di : list) {
|
|
|
|
+ if (namemap.containsKey(di.getUniformcode())) {
|
|
|
|
+ totalWtDiPointMap(phmap, di.getId(), namemap.get(di.getUniformcode()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ map.put("phmap", phmap);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************偏航*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************液压*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ Map<String, Double> yymap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(yymap, id, Constant.TPOINT_WT_YYXTYY, "YYXTYY");
|
|
|
|
+ totalWtAiPointMap(yymap, id, Constant.TPOINT_WT_ZZSCXTYY, "ZZSCXTYY");
|
|
|
|
+ totalWtAiPointMap(yymap, id, Constant.TPOINT_WT_FDJLQSWD, "FDJLQSWD");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ namemap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ unicodels = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYYWDCX);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYYYW);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YLSCYY);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYBDJBH);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYYJRQBH);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYYWDCX, "YYYWDCX");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYYYW, "YYYYW");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YLSCYY, "YLSCYY");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYBDJBH, "YYBDJBH");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYYJRQBH, "YYYJRQBH");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ list = windTurbineTestingPointDiService.getWindTurbineTestingPointDi2List(id, unicodels);
|
|
|
|
+
|
|
|
|
+ if (!list.isEmpty()) {
|
|
|
|
+
|
|
|
|
+ for (WindTurbineTestingPointDi2 di : list) {
|
|
|
|
+ if (namemap.containsKey(di.getUniformcode())) {
|
|
|
|
+ totalWtDiPointMap(yymap, di.getId(), namemap.get(di.getUniformcode()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ map.put("yymap", yymap);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************液压*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/*************************************************机舱*************************************************************/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ Map<String, Double> jcmap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (wt.getWindpowerstationid().equals(QS_FDC)) {
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YPWZ1, "YPWZ1");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YPWZ2, "YPWZ2");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YPWZ3, "YPWZ3");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJSSFS, "FJSSFS");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJGL, "FJGL");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_GLYS, "GLYS");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.QSTPOINT_WT_BJJD1, "BJJD1");
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJPL, "FJPL");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_WGGL, "WGGL");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJFX, "FJFX");
|
|
|
|
+
|
|
|
|
+ PointData po = getWtAiPointValue(id, Constant.QSTPOINT_WT_FDJZS);
|
|
|
|
+ if (null != po) {
|
|
|
|
+ Equipmentmodel model = InitialRunner.mlmap.get(wt.getModelid());
|
|
|
|
+ Double fdjzs = po.getPointValueInDouble();
|
|
if (model.getPowerproduction() == 2000) {
|
|
if (model.getPowerproduction() == 2000) {
|
|
- jczbmap.put("fdjzs", StringUtils.round(fdjzs * 9.55, 2));// 发电机转速
|
|
|
|
|
|
+ jcmap.put("FDJZS", StringUtils.round(fdjzs * 9.55, 2));// 发电机转速
|
|
} else {
|
|
} else {
|
|
- jczbmap.put("fdjzs", fdjzs);// 发电机转速
|
|
|
|
|
|
+ jcmap.put("FDJZS", fdjzs);// 发电机转速
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YLZS, "YLZS");
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
- jczbmap.put("bjjd", 0.0);// 变桨角度
|
|
|
|
- jczbmap.put("phjd", 0.0);// 偏航角度
|
|
|
|
- jczbmap.put("dl1", 0.0);// 电流1
|
|
|
|
- jczbmap.put("dl2", 0.0);// 电流2
|
|
|
|
- jczbmap.put("dl3", 0.0);// 电流3
|
|
|
|
- jczbmap.put("dy1", 0.0);// 电压1
|
|
|
|
- jczbmap.put("dy2", 0.0);// 电压2
|
|
|
|
- jczbmap.put("dy3", 0.0);// 电压3
|
|
|
|
- jczbmap.put("wd1", 0.0);// 温度1
|
|
|
|
- jczbmap.put("wd2", 0.0);// 温度2
|
|
|
|
- jczbmap.put("wd3", 0.0);// 温度3
|
|
|
|
- jczbmap.put("fdjzs", 0.0);// 发电机转速
|
|
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YPWZ1, "YPWZ1");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YPWZ2, "YPWZ2");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YPWZ3, "YPWZ3");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJSSFS, "FJSSFS");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJGL, "FJGL");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_GLYS, "GLYS");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_BJJD1, "BJJD1");
|
|
|
|
+
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJPL, "FJPL");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_WGGL, "WGGL");
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_FJFX, "FJFX");
|
|
|
|
+
|
|
|
|
+ PointData po = getWtAiPointValue(id, Constant.TPOINT_WT_FDJZS);
|
|
|
|
+ if (null != po) {
|
|
|
|
+ Equipmentmodel model = InitialRunner.mlmap.get(wt.getModelid());
|
|
|
|
+ Double fdjzs = po.getPointValueInDouble();
|
|
|
|
+ if (model.getPowerproduction() == 2000) {
|
|
|
|
+ jcmap.put("FDJZS", StringUtils.round(fdjzs * 9.55, 2));// 发电机转速
|
|
|
|
+ } else {
|
|
|
|
+ jcmap.put("FDJZS", fdjzs);// 发电机转速
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ totalWtAiPointMap(jcmap, id, Constant.TPOINT_WT_YLZS, "YLZS");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ namemap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ unicodels = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYYYW2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYYWDCX2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YLSCYY2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYBDJBH2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_YYYJRQBH2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXYW2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXRHYYL2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_CLXRHYJRBH2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_FDJJRQBHZC2);
|
|
|
|
+ unicodels.add(Constant.TPOINT_WT_LQSYL2);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYYYW2, "YYYYW2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYYWDCX2, "YYYWDCX2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YLSCYY2, "YLSCYY2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYBDJBH2, "YYBDJBH2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_YYYJRQBH2, "YYYJRQBH2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXYW2, "CLXYW2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXRHYYL2, "CLXRHYYL2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_CLXRHYJRBH2, "CLXRHYJRBH2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_FDJJRQBHZC2, "FDJJRQBHZC2");
|
|
|
|
+ namemap.put(Constant.TPOINT_WT_LQSYL2, "LQSYL2");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ list = windTurbineTestingPointDiService.getWindTurbineTestingPointDi2List(id, unicodels);
|
|
|
|
+
|
|
|
|
+ if (!list.isEmpty()) {
|
|
|
|
+
|
|
|
|
+ for (WindTurbineTestingPointDi2 di : list) {
|
|
|
|
+ if (namemap.containsKey(di.getUniformcode())) {
|
|
|
|
+ totalWtDiPointMap(jcmap, di.getId(), namemap.get(di.getUniformcode()));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- jczbls = new ArrayList<>();
|
|
|
|
|
|
+ map.put("jcmap", jcmap);
|
|
|
|
|
|
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_YLZS).getId());// 叶轮转速
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_DWZWD).getId());// 轴温1
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_GWZWD).getId());// 轴温2
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_CLXWD).getId());// 齿轮箱油温
|
|
|
|
|
|
+/*************************************************机舱*************************************************************/
|
|
|
|
+
|
|
|
|
+/*************************************************基础指标*************************************************************/
|
|
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJGL).getId());// 功率
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJSSFS).getId());// 风速
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_PJFS).getId());// 平均风速
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_GLYS).getId());// 功率因数
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_JCWWD).getId());// 环境温度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJFX).getId());// 风向
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJPL).getId());// 风机频率
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_WGGL).getId());// 无功功率
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJKYL).getId());// 可利用率
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDL).getId());// 日发电量
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FDJZCAWD).getId());// 发电机轴承A温度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FDJZCBWD).getId());// 发电机轴承B温度
|
|
|
|
|
|
|
|
|
|
+ Map<String, Double> jczbmap = new HashMap<>();
|
|
|
|
|
|
|
|
+
|
|
|
|
+ List<String> jczbls = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJKYL).getId());// 可利用率
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDL).getId());// 日发电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_LLGL).getId());// 风机理论功率
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_LLGL).getId());// 风机理论功率
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_YFGL).getId());// 风机应发功率
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_YFGL).getId());// 风机应发功率
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLBZ).getId());// 日理论发电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLBZ).getId());// 日理论发电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLZS).getId());// 日应发电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLZS).getId());// 日应发电量
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_JCWWD).getId());// 机舱外温度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_JCWD).getId());// 机舱温度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_TDGWD).getId());// 塔底柜温度
|
|
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_JCGWD).getId());// 机舱柜温度
|
|
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.FJZT).getId());// 风机状态
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.FJZT).getId());// 风机状态
|
|
- jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_DFJD).getId());// 对风角
|
|
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_PJGL).getId());// 平均风速功率
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_PJGL).getId());// 平均风速功率
|
|
-
|
|
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());// 风机日故障损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());// 风机日故障损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());// 风机日检修损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());// 风机日检修损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());// 风机日欠发损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());// 风机日欠发损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());// 风机日限电损失电量
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());// 风机日限电损失电量
|
|
-
|
|
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());// 日场内受累检修
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());// 日场内受累检修
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());// 日场内受累故障
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());// 日场内受累故障
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());// 日场外受累电网
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());// 日场外受累电网
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());// 日场外受累天气
|
|
jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());// 日场外受累天气
|
|
|
|
|
|
|
|
|
|
- jczblist = realApiUtil.getRealData(jczbls);
|
|
|
|
|
|
+ List<PointData> jczblist = realApiUtil.getRealData(jczbls);
|
|
|
|
|
|
|
|
|
|
if (!jczblist.isEmpty() && jczblist.size() == jczbls.size()) {
|
|
if (!jczblist.isEmpty() && jczblist.size() == jczbls.size()) {
|
|
|
|
|
|
- jczbmap.put("ylzs", MathUtil.twoBit(jczblist.get(0).getPointValueInDouble()));// 叶轮转速
|
|
|
|
- jczbmap.put("zw1", MathUtil.twoBit(jczblist.get(1).getPointValueInDouble()));// 轴温1
|
|
|
|
- jczbmap.put("zw2", MathUtil.twoBit(jczblist.get(2).getPointValueInDouble()));// 轴温2
|
|
|
|
- jczbmap.put("clxwd", MathUtil.twoBit(jczblist.get(3).getPointValueInDouble()));// 齿轮箱油温
|
|
|
|
- jczbmap.put("gl", MathUtil.twoBit(jczblist.get(4).getPointValueInDouble()));// 功率
|
|
|
|
- jczbmap.put("fs", MathUtil.twoBit(jczblist.get(5).getPointValueInDouble()));// 风速
|
|
|
|
- jczbmap.put("pjfs", MathUtil.twoBit(jczblist.get(6).getPointValueInDouble()));// 平均风速
|
|
|
|
- jczbmap.put("glys", MathUtil.twoBit(jczblist.get(7).getPointValueInDouble()));// 功率因数
|
|
|
|
- jczbmap.put("hjwd", MathUtil.twoBit(jczblist.get(8).getPointValueInDouble()));// 环境温度
|
|
|
|
- jczbmap.put("fx", MathUtil.twoBit(jczblist.get(9).getPointValueInDouble()));// 风向
|
|
|
|
- jczbmap.put("fjpl", MathUtil.twoBit(jczblist.get(10).getPointValueInDouble()));// 风机频率
|
|
|
|
- jczbmap.put("wggl", MathUtil.twoBit(jczblist.get(11).getPointValueInDouble()));// 无功功率
|
|
|
|
- jczbmap.put("klyl", MathUtil.twoBit(jczblist.get(12).getPointValueInDouble()));// 可利用率
|
|
|
|
- double rfdl = MathUtil.twoBit(jczblist.get(13).getPointValueInDouble());
|
|
|
|
- jczbmap.put("rfdl", rfdl);// 日发电量
|
|
|
|
- jczbmap.put("zcwda", MathUtil.twoBit(jczblist.get(14).getPointValueInDouble()));// 发电机轴承A温度
|
|
|
|
- jczbmap.put("zcwdb", MathUtil.twoBit(jczblist.get(15).getPointValueInDouble()));// 发电机轴承B温度
|
|
|
|
-
|
|
|
|
- jczbmap.put("llgl", MathUtil.twoBit(jczblist.get(16).getPointValueInDouble()));// 风机理论功率
|
|
|
|
- jczbmap.put("yfgl", MathUtil.twoBit(jczblist.get(17).getPointValueInDouble()));// 风机应发功率
|
|
|
|
- jczbmap.put("rlldl", MathUtil.twoBit(jczblist.get(18).getPointValueInDouble()));// 日理论发电量
|
|
|
|
- jczbmap.put("ryfdl", MathUtil.twoBit(jczblist.get(19).getPointValueInDouble()));// 日应发电量
|
|
|
|
- jczbmap.put("jcwwd", MathUtil.twoBit(jczblist.get(20).getPointValueInDouble()));// 机舱外温度
|
|
|
|
- jczbmap.put("jcwd", MathUtil.twoBit(jczblist.get(21).getPointValueInDouble()));// 机舱温度
|
|
|
|
- jczbmap.put("tdwd", MathUtil.twoBit(jczblist.get(22).getPointValueInDouble()));// 塔底柜温度
|
|
|
|
- jczbmap.put("jcgwd", MathUtil.twoBit(jczblist.get(23).getPointValueInDouble()));// 机舱柜温度
|
|
|
|
- jczbmap.put("fjzt", MathUtil.twoBit(jczblist.get(24).getPointValueInDouble()));// 风机状态
|
|
|
|
- jczbmap.put("dfjd", MathUtil.twoBit(jczblist.get(25).getPointValueInDouble()));// 对风角度
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- jczbmap.put("rpjgl", MathUtil.twoBit(jczblist.get(26).getPointValueInDouble()));// 平均风速功率
|
|
|
|
|
|
+
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLBZ).getId());// 日理论发电量
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLZS).getId());// 日应发电量
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.FJZT).getId());// 风机状态
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_PJGL).getId());// 平均风速功率
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());// 风机日故障损失电量
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());// 风机日检修损失电量
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());// 风机日欠发损失电量
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());// 风机日限电损失电量
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());// 日场内受累检修
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());// 日场内受累故障
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());// 日场外受累电网
|
|
|
|
+ jczbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());// 日场外受累天气
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ jczbmap.put("FJKYL", MathUtil.twoBit(jczblist.get(0).getPointValueInDouble()));// 可利用率
|
|
|
|
+ double rfdl = MathUtil.twoBit(jczblist.get(1).getPointValueInDouble());
|
|
|
|
+ jczbmap.put("RFDL", rfdl);// 日发电量
|
|
|
|
+ jczbmap.put("LLGL", MathUtil.twoBit(jczblist.get(2).getPointValueInDouble()));// 风机理论功率
|
|
|
|
+ jczbmap.put("YFGL", MathUtil.twoBit(jczblist.get(3).getPointValueInDouble()));// 风机应发功率
|
|
|
|
+ jczbmap.put("RFDLZS", MathUtil.twoBit(jczblist.get(4).getPointValueInDouble()));// 日应发电量
|
|
|
|
+ jczbmap.put("FJZT", MathUtil.twoBit(jczblist.get(5).getPointValueInDouble()));// 风机状态
|
|
|
|
+ jczbmap.put("PJGL", MathUtil.twoBit(jczblist.get(6).getPointValueInDouble()));// 平均风速功率
|
|
double rssdl = 0.0;
|
|
double rssdl = 0.0;
|
|
- double rgzss = MathUtil.twoBit(jczblist.get(27).getPointValueInDouble());
|
|
|
|
- double rjxss = MathUtil.twoBit(jczblist.get(28).getPointValueInDouble());
|
|
|
|
- double rxnss = MathUtil.twoBit(jczblist.get(29).getPointValueInDouble());
|
|
|
|
- double rxdss = MathUtil.twoBit(jczblist.get(30).getPointValueInDouble());
|
|
|
|
|
|
+ double rgzss = MathUtil.twoBit(jczblist.get(7).getPointValueInDouble());
|
|
|
|
+ double rjxss = MathUtil.twoBit(jczblist.get(8).getPointValueInDouble());
|
|
|
|
+ double rxnss = MathUtil.twoBit(jczblist.get(9).getPointValueInDouble());
|
|
|
|
+ double rxdss = MathUtil.twoBit(jczblist.get(10).getPointValueInDouble());
|
|
|
|
|
|
- double rlzssdl = MathUtil.twoBit(jczblist.get(31).getPointValueInDouble()); // 日场内受累检修
|
|
|
|
- double rszssdl = MathUtil.twoBit(jczblist.get(32).getPointValueInDouble()); // 日场内受累故障
|
|
|
|
- double rwzssdl = MathUtil.twoBit(jczblist.get(33).getPointValueInDouble()); // 日场外受累电网
|
|
|
|
- double rtzssdl = MathUtil.twoBit(jczblist.get(34).getPointValueInDouble()); // 日场外受累天气
|
|
|
|
|
|
+ double rlzssdl = MathUtil.twoBit(jczblist.get(11).getPointValueInDouble()); // 日场内受累检修
|
|
|
|
+ double rszssdl = MathUtil.twoBit(jczblist.get(12).getPointValueInDouble()); // 日场内受累故障
|
|
|
|
+ double rwzssdl = MathUtil.twoBit(jczblist.get(13).getPointValueInDouble()); // 日场外受累电网
|
|
|
|
+ double rtzssdl = MathUtil.twoBit(jczblist.get(14).getPointValueInDouble()); // 日场外受累天气
|
|
|
|
|
|
- jczbmap.put("rxnss", rxnss);// 日欠发损失电量
|
|
|
|
- jczbmap.put("rgzss", StringUtils.round(rgzss + rlzssdl, 2));// 日故障损失电量
|
|
|
|
- jczbmap.put("rwhss", StringUtils.round(rjxss + rszssdl, 2));// 日维护损失电量
|
|
|
|
- jczbmap.put("rxdss", rxdss);// 日限电损失电量
|
|
|
|
- jczbmap.put("rslss", StringUtils.round(rwzssdl + rtzssdl, 2));// 日受累损失电量
|
|
|
|
|
|
+ jczbmap.put("RXNSSDL", rxnss);// 日欠发损失电量
|
|
|
|
+ jczbmap.put("RGZSSDL", StringUtils.round(rgzss + rlzssdl, 2));// 日故障损失电量
|
|
|
|
+ jczbmap.put("RJXSSDL", StringUtils.round(rjxss + rszssdl, 2));// 日维护损失电量
|
|
|
|
+ jczbmap.put("RXDSSDL", rxdss);// 日限电损失电量
|
|
|
|
+ jczbmap.put("RSLSSDL", StringUtils.round(rwzssdl + rtzssdl, 2));// 日受累损失电量
|
|
|
|
|
|
|
|
|
|
rssdl = rgzss + rjxss + rxnss + rxdss + rwzssdl + rtzssdl + rszssdl + rlzssdl;
|
|
rssdl = rgzss + rjxss + rxnss + rxdss + rwzssdl + rtzssdl + rszssdl + rlzssdl;
|
|
|
|
|
|
- jczbmap.put("rssdl", StringUtils.round(rssdl, 2));// 风机日损失电量
|
|
|
|
|
|
+ jczbmap.put("RSSDL", StringUtils.round(rssdl, 2));// 风机日损失电量
|
|
|
|
|
|
- jczbmap.put("rlldl", StringUtils.round(rssdl + rfdl, 2));// 风机日理论电量
|
|
|
|
|
|
+ jczbmap.put("RLLFDL", StringUtils.round(rssdl + rfdl, 2));// 风机日理论电量
|
|
} else {
|
|
} else {
|
|
- jczbmap.put("ylzs", 0.0);// 叶轮转速
|
|
|
|
- jczbmap.put("zw1", 0.0);// 轴温1
|
|
|
|
- jczbmap.put("zw2", 0.0);// 轴温2
|
|
|
|
- jczbmap.put("clxwd", 0.0);// 齿轮箱油温
|
|
|
|
- jczbmap.put("gl", 0.0);// 功率
|
|
|
|
- jczbmap.put("fs", 0.0);// 风速
|
|
|
|
- jczbmap.put("pjfs", 0.0);// 平均风速
|
|
|
|
- jczbmap.put("glys", 0.0);// 功率因数
|
|
|
|
- jczbmap.put("hjwd", 0.0);// 环境温度
|
|
|
|
- jczbmap.put("fx", 0.0);// 风向
|
|
|
|
- jczbmap.put("fjpl", 0.0);// 风机频率
|
|
|
|
- jczbmap.put("wggl", 0.0);// 无功功率
|
|
|
|
- jczbmap.put("klyl", 0.0);// 可利用率
|
|
|
|
- jczbmap.put("rfdl", 0.0);// 日发电量
|
|
|
|
- jczbmap.put("zcwda", 0.0);// 发电机轴承A温度
|
|
|
|
- jczbmap.put("zcwdb", 0.0);// 发电机轴承B温度
|
|
|
|
-
|
|
|
|
- jczbmap.put("llgl", 0.0);// 风机理论功率
|
|
|
|
- jczbmap.put("yfgl", 0.0);// 风机应发功率
|
|
|
|
- jczbmap.put("rlldl", 0.0);// 日理论发电量
|
|
|
|
- jczbmap.put("ryfdl", 0.0);// 日应发电量
|
|
|
|
- jczbmap.put("jcwwd", 0.0);// 机舱外温度
|
|
|
|
- jczbmap.put("jcwd", 0.0);// 机舱温度
|
|
|
|
- jczbmap.put("tdwd", 0.0);// 塔底柜温度
|
|
|
|
- jczbmap.put("jcgwd", 0.0);// 机舱柜温度
|
|
|
|
- jczbmap.put("fjzt", 0.0);// 风机状态
|
|
|
|
- jczbmap.put("dfjd", 0.0);// 对风角度
|
|
|
|
-
|
|
|
|
- jczbmap.put("rpjgl", 0.0);// 平均风速功率
|
|
|
|
- jczbmap.put("rxnss", 0.0);// 日欠发损失电量
|
|
|
|
- jczbmap.put("rgzss", 0.0);// 日故障损失电量
|
|
|
|
- jczbmap.put("rwhss", 0.0);// 日维护损失电量
|
|
|
|
- jczbmap.put("rxdss", 0.0);// 日限电损失电量
|
|
|
|
- jczbmap.put("rslss", 0.0);// 日受累损失电量
|
|
|
|
- jczbmap.put("rssdl", 0.0);// 风机日损失电量
|
|
|
|
- jczbmap.put("rlldl", 0.0);// 风机日理论电量
|
|
|
|
|
|
+ jczbmap.put("FJKYL",0.0);// 可利用率
|
|
|
|
+ jczbmap.put("RFDL", 0.0);// 日发电量
|
|
|
|
+ jczbmap.put("LLGL", 0.0);// 风机理论功率
|
|
|
|
+ jczbmap.put("YFGL", 0.0);// 风机应发功率
|
|
|
|
+ jczbmap.put("RFDLZS",0.0);// 日应发电量
|
|
|
|
+ jczbmap.put("FJZT",0.0);// 风机状态
|
|
|
|
+ jczbmap.put("PJGL",0.0);// 平均风速功率
|
|
|
|
+
|
|
|
|
+ jczbmap.put("RXNSSDL", 0.0);// 日欠发损失电量
|
|
|
|
+ jczbmap.put("RGZSSDL", 0.0);// 日故障损失电量
|
|
|
|
+ jczbmap.put("RJXSSDL", 0.0);// 日维护损失电量
|
|
|
|
+ jczbmap.put("RXDSSDL", 0.0);// 日限电损失电量
|
|
|
|
+ jczbmap.put("RSLSSDL", 0.0);// 日受累损失电量
|
|
|
|
+
|
|
|
|
+ jczbmap.put("RSSDL", 0.0);// 风机日损失电量
|
|
|
|
+ jczbmap.put("RLLFDL", 0.0);// 风机日理论电量
|
|
}
|
|
}
|
|
|
|
|
|
map.put("jczbmap", jczbmap);
|
|
map.put("jczbmap", jczbmap);
|
|
@@ -294,14 +600,15 @@ public class WtInfoPushService {
|
|
|
|
|
|
/*************************************************基础指标*************************************************************/
|
|
/*************************************************基础指标*************************************************************/
|
|
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
/*************************************************关系库指标**************************************************************/
|
|
/*************************************************关系库指标**************************************************************/
|
|
|
|
|
|
Map<String, Double> gxkmap = new HashMap<>();
|
|
Map<String, Double> gxkmap = new HashMap<>();
|
|
- Date date=DateUtils.truncate(new Date());
|
|
|
|
- List<WindTurbineInfoDay> wtdls = windturbineinfodayService.getWindturbineinfo(id,date);
|
|
|
|
|
|
+ Date date = DateUtils.truncate(new Date());
|
|
|
|
+ List<WindTurbineInfoDay> wtdls = windturbineinfodayService.getWindturbineinfo(id, date);
|
|
if (!wtdls.isEmpty()) {
|
|
if (!wtdls.isEmpty()) {
|
|
WindTurbineInfoDay wd = wtdls.get(0);
|
|
WindTurbineInfoDay wd = wtdls.get(0);
|
|
gxkmap.put("ndxkyss", wd.getYeardxkyxs());
|
|
gxkmap.put("ndxkyss", wd.getYeardxkyxs());
|
|
@@ -323,16 +630,57 @@ public class WtInfoPushService {
|
|
gxkmap.put("yyxxs", 0.0);
|
|
gxkmap.put("yyxxs", 0.0);
|
|
gxkmap.put("ygzxs", 0.0);
|
|
gxkmap.put("ygzxs", 0.0);
|
|
gxkmap.put("yjxxs", 0.0);
|
|
gxkmap.put("yjxxs", 0.0);
|
|
- gxkmap.put("ytjxs",0.0);
|
|
|
|
|
|
+ gxkmap.put("ytjxs", 0.0);
|
|
}
|
|
}
|
|
|
|
|
|
map.put("gxkmap", gxkmap);
|
|
map.put("gxkmap", gxkmap);
|
|
}
|
|
}
|
|
/*************************************************关系库指标**************************************************************/
|
|
/*************************************************关系库指标**************************************************************/
|
|
|
|
|
|
|
|
+
|
|
|
|
+ return map;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private PointData getWtAiPointValue(String id, String unicode) throws Exception {
|
|
|
|
+
|
|
|
|
+ PointData pointData = null;
|
|
|
|
+ if (StringUtils.notEmp(id) && StringUtils.notEmp(unicode)) {
|
|
|
|
+ WindTurbineTestingPointAi2 point = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, unicode);
|
|
|
|
+ if (StringUtils.notEmp(point.getId())) {
|
|
|
|
+ pointData = realApiUtil.getRealData(point.getId());
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return pointData;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private Map<String, Double> totalWtAiPointMap(Map<String, Double> map, String id, String unicode, String name) throws Exception {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (StringUtils.notEmp(map) && StringUtils.notEmp(id) && StringUtils.notEmp(unicode) && StringUtils.notEmp(name)) {
|
|
|
|
+ WindTurbineTestingPointAi2 point = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, unicode);
|
|
|
|
+ if (StringUtils.notEmp(point.getId())) {
|
|
|
|
+ PointData pointData = realApiUtil.getRealData(point.getId());
|
|
|
|
+ if (StringUtils.notEmp(pointData)) {
|
|
|
|
+ map.put(name, StringUtils.round(pointData.getPointValueInDouble(), 2));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private Map<String, Double> totalWtDiPointMap(Map<String, Double> map, String pointId, String name) throws Exception {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ PointData pointData = realApiUtil.getRealData(pointId);
|
|
|
|
+ if (StringUtils.notEmp(pointData)) {
|
|
|
|
+ map.put(name, StringUtils.round(pointData.getPointValueInDouble(), 2));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return map;
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|