diff --git a/src/main/java/com/dispose/controller/DisposeDeviceManagerController.java b/src/main/java/com/dispose/controller/DisposeDeviceManagerController.java index 7997d4ca..3d4658b4 100644 --- a/src/main/java/com/dispose/controller/DisposeDeviceManagerController.java +++ b/src/main/java/com/dispose/controller/DisposeDeviceManagerController.java @@ -227,6 +227,10 @@ public class DisposeDeviceManagerController { DeviceInfoRsp rsp = new DeviceInfoRsp(); DisposeDevice dev = v.getSecondParam(); + disposeDeviceManagerService.getAllDisposeDevice().parallelStream() + .filter(k -> k.getId().equals(dev.getId())) + .findAny().ifPresent(device -> rsp.setDevStatus(device.getStatus())); + rsp.setId(String.valueOf(dev.getId())); rsp.setStatus(v.getFirstParam().getCode()); rsp.setMessage(new String[]{v.getFirstParam().getMsg()});