|
@@ -44,8 +44,11 @@ public class OverallConsumer {
|
|
|
WorkOfflineDTO vo = JSONObject.parseObject(msg, WorkOfflineDTO.class);
|
|
|
|
|
|
String redisKey = String.format(RedisKeyUtil.overallDownOfflineProgressKey,vo.getWorkId());
|
|
|
-
|
|
|
- vo.setProgress(100);
|
|
|
+ if(vo.getOfflineStatus() != null && vo.getOfflineStatus() == -1){
|
|
|
+ vo.setProgress(0);
|
|
|
+ }else {
|
|
|
+ vo.setProgress(100);
|
|
|
+ }
|
|
|
redisUtil.set(redisKey,JSONObject.toJSONString(vo), RedisKeyUtil.overallDownOfflineProgressKeyTime);
|
|
|
|
|
|
}catch (Exception e){
|