|
@@ -5,6 +5,7 @@ import com.gyee.frame.common.spring.Constant;
|
|
|
import com.gyee.frame.common.spring.InitialRunner;
|
|
|
import com.gyee.frame.model.auto.*;
|
|
|
import com.gyee.frame.model.custom.PointData;
|
|
|
+import com.gyee.frame.service.WarningRecordsService;
|
|
|
import com.gyee.frame.service.WindTurbineTestingPointAiService;
|
|
|
import com.gyee.frame.service.WindTurbineTestingPointDiService;
|
|
|
import com.gyee.frame.service.WindturbineinfodayService;
|
|
@@ -28,7 +29,8 @@ public class WtInfoPushService {
|
|
|
|
|
|
@Resource
|
|
|
private WindturbineinfodayService windturbineinfodayService;
|
|
|
-
|
|
|
+ @Resource
|
|
|
+ private WarningRecordsService warningRecordsService;
|
|
|
IRealTimeDataBaseUtil realApiUtil = new EdosUtil();
|
|
|
|
|
|
String QS_FDC = "QS_FDC";
|
|
@@ -68,6 +70,9 @@ public class WtInfoPushService {
|
|
|
map.put("wpid", wt.getWindpowerstationid());
|
|
|
map.put("pjid", wt.getProjectid());
|
|
|
map.put("lnid", wt.getLineid());
|
|
|
+ map.put("code", wt.getCode());
|
|
|
+ Line ln= InitialRunner.lnmap.get(wt.getLineid());
|
|
|
+ map.put("lnname", ln.getName());
|
|
|
|
|
|
Double sjgl = 0.0;
|
|
|
Double bzgl = 0.0;
|
|
@@ -83,7 +88,9 @@ public class WtInfoPushService {
|
|
|
Map<String, Integer> phnamemap = new HashMap<>();
|
|
|
Map<String, Integer> yynamemap = new HashMap<>();
|
|
|
Map<String, Integer> jcnamemap = new HashMap<>();
|
|
|
- Map<String, Integer> jczbnamemap = new HashMap<>();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJKYL).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDL).getId());
|
|
@@ -92,7 +99,6 @@ public class WtInfoPushService {
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLBZ).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_RFDLZS).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.FJZT).getId());
|
|
|
- zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_PJGL).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RGZSSDL).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RJXSSDL).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());
|
|
@@ -102,24 +108,36 @@ public class WtInfoPushService {
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RQFSSDL).getId());
|
|
|
zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.RXDSSDL).getId());
|
|
|
|
|
|
+ zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJSSFS).getId());
|
|
|
+ zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FJGL).getId());
|
|
|
+ if (wt.getWindpowerstationid().equals(QS_FDC)) {
|
|
|
+ zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.QSTPOINT_WT_FDJZS).getId());
|
|
|
+
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_FDJZS).getId());
|
|
|
+ }
|
|
|
+ zbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(id, Constant.TPOINT_WT_JCWWD).getId());
|
|
|
+
|
|
|
keyls.add("FJKYL");
|
|
|
keyls.add("RFDL");
|
|
|
keyls.add("LLGL");
|
|
|
keyls.add("YFGL");
|
|
|
- keyls.add("RFDLBZ");
|
|
|
- keyls.add("RFDLZS");
|
|
|
+ keyls.add("LLFDL");
|
|
|
+ keyls.add("YFDL");
|
|
|
keyls.add("FJZT");
|
|
|
- keyls.add("PJGL");
|
|
|
- keyls.add("RGZSSDL");
|
|
|
- keyls.add("RJXSSDL");
|
|
|
- keyls.add("RQFSSDL");
|
|
|
- keyls.add("RXDSSDL");
|
|
|
- keyls.add("RGZSSDL");
|
|
|
+ keyls.add("GZSS");
|
|
|
+ keyls.add("JXSS");
|
|
|
+ keyls.add("XNSS");
|
|
|
+ keyls.add("XDSS");
|
|
|
+ keyls.add("SLSS");
|
|
|
keyls.add("RJXSSDL");
|
|
|
keyls.add("RQFSSDL");
|
|
|
keyls.add("RXDSSDL");
|
|
|
-
|
|
|
-
|
|
|
+ keyls.add("FS");
|
|
|
+ keyls.add("GL");
|
|
|
+ keyls.add("FDJZS");
|
|
|
+ keyls.add("HJWD");
|
|
|
|
|
|
|
|
|
List<String> uids = new ArrayList<>();
|
|
@@ -536,30 +554,35 @@ public class WtInfoPushService {
|
|
|
jczbmap.put(keyls.get(4), MathUtil.twoBit(zblist.get(4).getPointValueInDouble()));
|
|
|
jczbmap.put(keyls.get(5), MathUtil.twoBit(zblist.get(5).getPointValueInDouble()));
|
|
|
jczbmap.put(keyls.get(6), MathUtil.twoBit(zblist.get(6).getPointValueInDouble()));
|
|
|
- jczbmap.put(keyls.get(7), MathUtil.twoBit(zblist.get(7).getPointValueInDouble()));
|
|
|
+
|
|
|
double rssdl = 0.0;
|
|
|
- double rgzss = MathUtil.twoBit(zblist.get(8).getPointValueInDouble());
|
|
|
- double rjxss = MathUtil.twoBit(zblist.get(9).getPointValueInDouble());
|
|
|
- double rxnss = MathUtil.twoBit(zblist.get(10).getPointValueInDouble());
|
|
|
- double rxdss = MathUtil.twoBit(zblist.get(11).getPointValueInDouble());
|
|
|
+ double rgzss = MathUtil.twoBit(zblist.get(7).getPointValueInDouble());
|
|
|
+ double rjxss = MathUtil.twoBit(zblist.get(8).getPointValueInDouble());
|
|
|
+ double rxnss = MathUtil.twoBit(zblist.get(9).getPointValueInDouble());
|
|
|
+ double rxdss = MathUtil.twoBit(zblist.get(10).getPointValueInDouble());
|
|
|
|
|
|
- double rlzssdl = MathUtil.twoBit(zblist.get(12).getPointValueInDouble());
|
|
|
- double rszssdl = MathUtil.twoBit(zblist.get(13).getPointValueInDouble());
|
|
|
- double rwzssdl = MathUtil.twoBit(zblist.get(14).getPointValueInDouble());
|
|
|
- double rtzssdl = MathUtil.twoBit(zblist.get(15).getPointValueInDouble());
|
|
|
+ double rlzssdl = MathUtil.twoBit(zblist.get(11).getPointValueInDouble());
|
|
|
+ double rszssdl = MathUtil.twoBit(zblist.get(12).getPointValueInDouble());
|
|
|
+ double rwzssdl = MathUtil.twoBit(zblist.get(13).getPointValueInDouble());
|
|
|
+ double rtzssdl = MathUtil.twoBit(zblist.get(14).getPointValueInDouble());
|
|
|
|
|
|
- jczbmap.put(keyls.get(8), StringUtils.round(rgzss + rlzssdl, 2));
|
|
|
- jczbmap.put(keyls.get(9), StringUtils.round(rjxss + rszssdl, 2));
|
|
|
- jczbmap.put(keyls.get(10), rxnss);
|
|
|
+ jczbmap.put(keyls.get(7), StringUtils.round(rgzss + rlzssdl, 2));
|
|
|
+ jczbmap.put(keyls.get(8), StringUtils.round(rjxss + rszssdl, 2));
|
|
|
+ jczbmap.put(keyls.get(9), rxnss);
|
|
|
|
|
|
- jczbmap.put(keyls.get(11), rxdss);
|
|
|
- jczbmap.put(keyls.get(12), StringUtils.round(rwzssdl + rtzssdl, 2));
|
|
|
+ jczbmap.put(keyls.get(10), rxdss);
|
|
|
+ jczbmap.put(keyls.get(11), StringUtils.round(rwzssdl + rtzssdl, 2));
|
|
|
|
|
|
rssdl = rgzss + rjxss + rxnss + rxdss + rwzssdl + rtzssdl + rszssdl + rlzssdl;
|
|
|
|
|
|
jczbmap.put("RSSDL", StringUtils.round(rssdl, 2));
|
|
|
|
|
|
jczbmap.put("RLLFDL", StringUtils.round(rssdl + rfdl, 2));
|
|
|
+
|
|
|
+ jczbmap.put(keyls.get(15), MathUtil.twoBit(zblist.get(15).getPointValueInDouble()));
|
|
|
+ jczbmap.put(keyls.get(16), MathUtil.twoBit(zblist.get(16).getPointValueInDouble()));
|
|
|
+ jczbmap.put(keyls.get(17), MathUtil.twoBit(zblist.get(17).getPointValueInDouble()));
|
|
|
+ jczbmap.put(keyls.get(18), MathUtil.twoBit(zblist.get(18).getPointValueInDouble()));
|
|
|
|
|
|
|
|
|
|
|
@@ -656,7 +679,7 @@ public class WtInfoPushService {
|
|
|
|
|
|
|
|
|
|
|
|
- Map<String, Double> gxkmap = new HashMap<>();
|
|
|
+ Map<String, Object> gxkmap = new HashMap<>();
|
|
|
Date date = DateUtils.truncate(new Date());
|
|
|
List<WindTurbineInfoDay> wtdls = windturbineinfodayService.getWindturbineinfo(id, date);
|
|
|
if (!wtdls.isEmpty()) {
|
|
@@ -671,6 +694,10 @@ public class WtInfoPushService {
|
|
|
gxkmap.put("yjxxs", wd.getMonthmaintaintime());
|
|
|
gxkmap.put("ytjxs", wd.getMonhtstoptime());
|
|
|
|
|
|
+ Map<String, Object> jczbmap =(Map<String, Object>)map.get("jczbmap");
|
|
|
+ jczbmap.put("FJKYL", wd.getDaysbklyl());
|
|
|
+ map.put("jczbmap", jczbmap);
|
|
|
+
|
|
|
} else {
|
|
|
gxkmap.put("ndxkyss", 0.0);
|
|
|
gxkmap.put("nsbklyl", 0.0);
|
|
@@ -683,6 +710,14 @@ public class WtInfoPushService {
|
|
|
gxkmap.put("ytjxs", 0.0);
|
|
|
}
|
|
|
|
|
|
+ WarningRecords warningRecords= warningRecordsService.getWarningRecords(id);
|
|
|
+
|
|
|
+ if(null !=warningRecords && null !=warningRecords.getWarningid() && InitialRunner.warningmap.containsKey(warningRecords.getWarningid()))
|
|
|
+ {
|
|
|
+ Warning2 warning2=InitialRunner.warningmap.get(warningRecords.getWarningid());
|
|
|
+ gxkmap.put("bjmc", warning2.getChinesetext());
|
|
|
+ gxkmap.put("bjsj", DateUtils.formatDateTime(warningRecords.getWarningtime()));
|
|
|
+ }
|
|
|
map.put("gxkmap", gxkmap);
|
|
|
|
|
|
|