From f695fa17fce26c0266ff682622d761767a8dcbfa Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 20 十一月 2024 17:06:01 +0800 Subject: [PATCH] 1、优化代码; 2、增加一个统计状态:离线升级失败状态。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 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 cc1c4b1..f1983e7 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 @@ -16,10 +16,17 @@ public int runningTotal ;//鎵�鏈夋鍦ㄥ崌绾� public int overTotal ;//鎵�鏈夌粨鏉燂紙鍖呮嫭鎴愬姛涓庢墍鏈夊け璐ワ級 public int successTotal ;//鎵�鏈夋垚鍔� - public int failTotal ;//鎵�鏈夊け璐� + public int failTotal ;//鎵�鏈夊け璐ワ紙涓�鍖呮澶辫触+澶氬寘姝诲け璐�+绂荤嚎澶辫触锛� public int failOneTotal ;//鎵�鏈変竴鍖呮澶辫触 + public int failOffTotal ;//鎵�鏈夌绾垮け璐� + + public Boolean allOver ;//鎵�鏈夐兘缁撴潫锛坱rue:鏄紝false:鍚︼級 public UpgradeState() { + this.init(); + } + + public void init(){ this.rtuTotal = 0; this.offLineTotal = 0; this.unStartTotal = 0; @@ -27,6 +34,9 @@ this.overTotal = 0; this.successTotal = 0; this.failTotal = 0; + this.failOneTotal = 0; + this.failOffTotal = 0; + this.allOver = false ; } public String toString(){ @@ -39,7 +49,9 @@ sb.append(" \n宸茬粨鏉熸�绘暟锛�" + overTotal) ; sb.append(" \n鎴愬姛鎬绘暟锛�" + successTotal) ; sb.append(" \n澶辫触鎬绘暟锛�" + failTotal) ; - sb.append(" \n1鍖呮鎬绘暟锛�" + failOneTotal) ; + sb.append(" \n1鍖呮澶辫触鎬绘暟锛�" + failOneTotal) ; + sb.append(" \n绂荤嚎澶辫触鎬绘暟锛�" + failOffTotal) ; + sb.append(" \n鍏ㄧ粨鏉燂細" + allOver) ; return sb.toString() ; } -- Gitblit v1.8.0