Browse Source

矩阵二期状态逻辑调整

王波 1 week ago
parent
commit
06329611ff

+ 7 - 7
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/monitor/MatrixHAService.java

@@ -155,7 +155,13 @@ public class MatrixHAService {
                         //二期集控状态 0==离线(通讯中断) 1==故障(故障停机) 2==检修(停机维护) 3==待机(待机状态) 4==启动 5==并网(正常运行)
                         //           限功运行==true 解缆==true 中控停机==true
 
-                        if (ztls.get(0).getPointValueInDouble() == 0.0) {
+                         if (xglls.get(0).getPointValue().equals("true")) {
+                            ztvo.setStatus(1.0);//限功运行
+                        } else if (jlls.get(0).getPointValue().equals("true")) {
+                            ztvo.setStatus(11.0);//解缆
+                        } else if (zktjls.get(0).getPointValue().equals("true")) {
+                            ztvo.setStatus(-1.0);//通讯中断
+                        } else if (ztls.get(0).getPointValueInDouble() == 0.0) {
                             ztvo.setStatus(-1.0);//通讯中断
                         } else if (ztls.get(0).getPointValueInDouble() == 1.0) {
                             ztvo.setStatus(3.0);//故障停机
@@ -167,12 +173,6 @@ public class MatrixHAService {
                             ztvo.setStatus(10.0);//启动
                         } else if (ztls.get(0).getPointValueInDouble() == 5.0) {
                             ztvo.setStatus(0.0);//正常运行
-                        } else if (xglls.get(0).getPointValue().equals("true")) {
-                            ztvo.setStatus(1.0);//限功运行
-                        } else if (jlls.get(0).getPointValue().equals("true")) {
-                            ztvo.setStatus(11.0);//解缆
-                        } else if (zktjls.get(0).getPointValue().equals("true")) {
-                            ztvo.setStatus(-1.0);//通讯中断
                         }