From c5bea1da6e179d694ddf96a922be5156f731615e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 14 十一月 2024 10:56:25 +0800
Subject: [PATCH] 修改升级监视功能模块,允许查询参数为null

---
 pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/upgrade/UpgradeTask.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/upgrade/UpgradeTask.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/upgrade/UpgradeTask.java
index e0b3d13..a8a05fc 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/upgrade/UpgradeTask.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/upgrade/UpgradeTask.java
@@ -101,7 +101,7 @@
             this.softFileDataGrp = listBytes.toArray(new byte[0][]);
             for(String rtuAddr : this.taskVo.rtuAddrList){
                 //姝ゆ椂鐘舵�佽缃垚绂荤嚎鐘舵��
-                UpgradeRtuDev ugRtu = new UpgradeRtuDev(this, rtuAddr, this.taskVo.softFileData.length, UpgradeRtuDev.STATE_OFFLINE) ;
+                UpgradeRtuDev ugRtu = new UpgradeRtuDev(this, rtuAddr, this.softFileDataGrp.length, UpgradeRtuDev.STATE_OFFLINE) ;
                 this.upgradeRtus.put(rtuAddr, ugRtu) ;
             }
         }
@@ -192,18 +192,18 @@
             if(this.upgradeRtus != null && this.upgradeRtus.size() > 0){
                 Collection<UpgradeRtu> col = this.upgradeRtus.values() ;
                 for(UpgradeRtu info : col){
-                    if(info.state == UpgradeRtuDev.STATE_OFFLINE){
+                    if(info.state == UpgradeRtu.STATE_OFFLINE){
                         state.offLineTotal ++ ;
-                    }else if(info.state == UpgradeRtuDev.STATE_UNSTART){
+                    }else if(info.state == UpgradeRtu.STATE_UNSTART){
                         state.unStartTotal ++ ;
-                    }else if(info.state == UpgradeRtuDev.STATE_RUNNING){
+                    }else if(info.state == UpgradeRtu.STATE_RUNNING){
                         state.runningTotal ++ ;
-                    }else if(info.state == UpgradeRtuDev.STATE_SUCCESS) {
+                    }else if(info.state == UpgradeRtu.STATE_SUCCESS) {
                         state.successTotal++;
-                    }else if(info.state == UpgradeRtuDev.STATE_FAILONE) {
+                    }else if(info.state == UpgradeRtu.STATE_FAILONE) {
                         state.failOneTotal++;
                         state.failTotal++;
-                    }else if(info.state == UpgradeRtuDev.STATE_FAIL) {
+                    }else if(info.state == UpgradeRtu.STATE_FAIL) {
                         state.failTotal++;
                     }
                     if(info.isOver){

--
Gitblit v1.8.0