From 828c1d825308f465c0aa1ea7b94b34c49ccac1d9 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 18 十一月 2024 14:54:53 +0800
Subject: [PATCH] 解决升级模拟器中的一包死统计的bug

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/state/UpgradeState.java |    9 +++++++++
 1 files changed, 9 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 cc1c4b1..115b945 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,8 @@
         this.overTotal = 0;
         this.successTotal = 0;
         this.failTotal = 0;
+        this.failOneTotal = 0;
+        this.allOver = false ;
     }
 
     public String toString(){
@@ -40,6 +48,7 @@
         sb.append("    \n鎴愬姛鎬绘暟锛�" + successTotal) ;
         sb.append("    \n澶辫触鎬绘暟锛�" + failTotal) ;
         sb.append("    \n1鍖呮鎬绘暟锛�" + failOneTotal) ;
+        sb.append("    \n鍏ㄧ粨鏉燂細" + allOver) ;
         return sb.toString() ;
     }
 

--
Gitblit v1.8.0