From 0c1e685e4ac58072f72dcd990ba811fe23bb0065 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 14 十一月 2024 17:07:49 +0800
Subject: [PATCH] 升级监视,修改重置逻辑错误

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java
index 6e354ce..2c2b836 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java
@@ -19,7 +19,13 @@
     public int failTotal ;//鎵�鏈夊け璐�
     public int failOneTotal ;//鎵�鏈変竴鍖呮澶辫触
 
+    public Boolean allOver ;//鎵�鏈夐兘缁撴潫锛坱rue:鏄紝false:鍚︼級
+
     public UpgradeState() {
+        this.init();
+    }
+
+    public void init(){
         this.rtuTotal = 0;
         this.offLineTotal = 0;
         this.unStartTotal = 0;
@@ -27,6 +33,22 @@
         this.overTotal = 0;
         this.successTotal = 0;
         this.failTotal = 0;
+        this.allOver = false ;
+    }
+
+    public String toString(){
+        StringBuilder sb = new StringBuilder() ;
+        sb.append("鍗囩骇鐘舵��") ;
+        sb.append("    \n璁剧疆RTU鎬绘暟锛�" + rtuTotal) ;
+        sb.append("    \n绂荤嚎RTU鎬绘暟锛�" + offLineTotal) ;
+        sb.append("    \n鏈紑濮嬫�绘暟锛�" + unStartTotal) ;
+        sb.append("    \n姝e崌绾ф�绘暟锛�" + runningTotal) ;
+        sb.append("    \n宸茬粨鏉熸�绘暟锛�" + overTotal) ;
+        sb.append("    \n鎴愬姛鎬绘暟锛�" + successTotal) ;
+        sb.append("    \n澶辫触鎬绘暟锛�" + failTotal) ;
+        sb.append("    \n1鍖呮鎬绘暟锛�" + failOneTotal) ;
+        sb.append("    \n鍏ㄧ粨鏉燂細" + allOver) ;
+        return sb.toString() ;
     }
 
 

--
Gitblit v1.8.0