liurunyu
2024-11-20 f695fa17fce26c0266ff682622d761767a8dcbfa
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 ;//所有都结束(true:是,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() ;
    }