REM:
1.修改更新处置设备响应消息
This commit is contained in:
chenlinghy 2020-09-10 18:12:16 +08:00
parent 86447e90a7
commit 9808ac4bdf
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,10 @@ public class DisposeDeviceManagerController {
DeviceInfoRsp rsp = new DeviceInfoRsp(); DeviceInfoRsp rsp = new DeviceInfoRsp();
DisposeDevice dev = v.getSecondParam(); 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.setId(String.valueOf(dev.getId()));
rsp.setStatus(v.getFirstParam().getCode()); rsp.setStatus(v.getFirstParam().getCode());
rsp.setMessage(new String[]{v.getFirstParam().getMsg()}); rsp.setMessage(new String[]{v.getFirstParam().getMsg()});