设备状态修改
This commit is contained in:
parent
ad0ebbcb77
commit
3fc528065a
|
|
@ -52,7 +52,7 @@ public class TCPMonitorService {
|
|||
try {
|
||||
List<CheckDevice> initialDevices = mapper.selectDeviceList();
|
||||
initialDevices.forEach(device -> {
|
||||
if (device.getPort().equals("8080")){
|
||||
if (device.getPort() == 8080){
|
||||
devices.put(device.getId(), device);
|
||||
}else{
|
||||
pingDevices.put(device.getId(), device);
|
||||
|
|
|
|||
Loading…
Reference in New Issue