From 9a5d87509968d7d7c5b475171daa2ad8f977c272 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 14 十一月 2024 14:50:06 +0800
Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
---
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java | 18 ++++++++++++++++++
1 files changed, 18 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..145bd62 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
@@ -20,6 +20,10 @@
public int failOneTotal ;//鎵�鏈変竴鍖呮澶辫触
public UpgradeState() {
+ this.init();
+ }
+
+ public void init(){
this.rtuTotal = 0;
this.offLineTotal = 0;
this.unStartTotal = 0;
@@ -29,5 +33,19 @@
this.failTotal = 0;
}
+ 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) ;
+ return sb.toString() ;
+ }
+
}
--
Gitblit v1.8.0