liurunyu
2024-11-23 7c94f000ca94776eb62e8296bf4f42473085f242
pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/upgrade/UpgradeManager.java
@@ -182,7 +182,8 @@
                //升级任务未完成
                //工作1:判断是否无任何一个RTU进行过升级,并且达到时限,则认为当前升级任务完成
                //-1:无一RTU升级且超时,0:无RTU升级但未超时等待,1有RTU升级正常执行
                int temp = this.task.countNoOneRtuUpgradeInDuration() ;
                int temp = 1 ;
                //int temp = this.task.countNoOneRtuUpgradeInDuration() ;
                if(temp == -1){
                    this.task.taskIsOver = true ;
                    //任务已经完成
@@ -192,10 +193,10 @@
                    this.task.countRunningRtuCount() ;
                    //工作3:统计需要升级但当前离线RTU的情况,超过时限的设备为升级完成
                    this.task.countOffRtuAndSetIfOver() ;
                    //this.task.countOffRtuAndSetIfOver() ;
                    //工作4:统计是否全部升级完成
                    this.task.taskIsOver = this.task.countIsAllOver() ;
                    //this.task.taskIsOver = this.task.countIsAllOver() ;
                }else if(temp == 0){
                    //不作为
                }