parent
a2b6744cca
commit
70a22ee297
|
@ -43,7 +43,8 @@ public class DisposeDeviceManagerServiceImpl implements DisposeDeviceManagerServ
|
||||||
try {
|
try {
|
||||||
MulReturnType<ErrorCode, Long> ret = disposeDeviceManager.addDisposeDevice(v);
|
MulReturnType<ErrorCode, Long> ret = disposeDeviceManager.addDisposeDevice(v);
|
||||||
v.setId(ret.getSecondParam());
|
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) {
|
} catch (Exception e) {
|
||||||
rspList.add(new MulReturnType<>(ErrorCode.ERR_SYSTEMEXCEPTION, v));
|
rspList.add(new MulReturnType<>(ErrorCode.ERR_SYSTEMEXCEPTION, v));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue