From 7a05e0cd475e2d084d9ecade98763aeb14ca1507 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 14 十一月 2024 15:05:49 +0800
Subject: [PATCH] xyz
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voUg/VoWatch.java | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voUg/VoWatch.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voUg/VoWatch.java
index 79b39b2..f402e5f 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voUg/VoWatch.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voUg/VoWatch.java
@@ -29,8 +29,8 @@
public Integer rate ; //杩涘害
public String state; //鍗囩骇鐘舵��
public Integer reTryTimes ; //閲嶈瘯娆℃暟
- public boolean over ; //鏄惁缁撴潫锛坱rue锛氭槸锛宖alse锛氬惁锛�
- public boolean success ; //鏄惁鎴愬姛锛坱rue锛氭槸锛宖alse锛氬惁锛�
+ public Boolean over ; //鏄惁缁撴潫锛坱rue锛氭槸锛宖alse锛氬惁锛�
+ public Boolean success ; //鏄惁鎴愬姛锛坱rue锛氭槸锛宖alse锛氬惁锛�
public void fromCache(UpgradeRtu ugRtu){
this.rtuAddr = ugRtu.rtuAddr ;
@@ -38,7 +38,11 @@
this.state = UpgradeRtu.getStateName(ugRtu.state) ;
this.reTryTimes = ugRtu.reTryTimes ;
this.over = ugRtu.isOver ;
- this.success = ugRtu.state == UpgradeRtu.STATE_SUCCESS ? true : false ;
+ if(ugRtu.isOver){
+ this.success = (ugRtu.state == UpgradeRtu.STATE_SUCCESS ? true : false) ;
+ }else{
+ this.success = null ;
+ }
}
}
}
--
Gitblit v1.8.0