更新心跳逻辑

This commit is contained in:
谷成伟 2024-12-11 09:41:07 +08:00
parent 3566343b62
commit 6d1dd1ae26
2 changed files with 1 additions and 1 deletions

View File

@ -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