REM:
1.修正由空指针异常导致添加设备节点失败
This commit is contained in:
chenlinghy 2021-01-29 15:44:02 +08:00
parent a2b6744cca
commit 70a22ee297
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ public class DisposeDeviceManagerServiceImpl implements DisposeDeviceManagerServ
try {
MulReturnType<ErrorCode, Long> ret = disposeDeviceManager.addDisposeDevice(v);
v.setId(ret.getSecondParam());
rspList.add(new MulReturnType<>(ret.getFirstParam(), v));
DisposeDevice dev = disposeDeviceManager.getDisposeDevices(v.getId(),v.getAreaCode()).get(0);
rspList.add(new MulReturnType<>(ret.getFirstParam(), dev));
} catch (Exception e) {
rspList.add(new MulReturnType<>(ErrorCode.ERR_SYSTEMEXCEPTION, v));
}