更新心跳逻辑
This commit is contained in:
parent
3566343b62
commit
6d1dd1ae26
@ -62,7 +62,7 @@ public class HeartbeatCommand implements BaseCommand{
|
||||
adminRedisTemplate.set(keyCommFaultState, online ? 0 : 1);
|
||||
}
|
||||
else{
|
||||
adminRedisTemplate.set(keyCommFaultState, online && plcDeviceStatus != 0 ? 0 : 1);
|
||||
adminRedisTemplate.set(keyCommFaultState, online && (plcDeviceStatus != 0) ? 0 : 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 105 KiB |
Loading…
Reference in New Issue
Block a user