parent
86447e90a7
commit
9808ac4bdf
|
@ -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()});
|
||||
|
|
Loading…
Reference in New Issue