parent
70a22ee297
commit
8b1a247b32
|
@ -157,6 +157,10 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
|||
// 更新值
|
||||
upgradeDisposeDeviceProperties(tDev, dev);
|
||||
|
||||
dev.setUrlType(tDev.getUrlType());
|
||||
dev.setIpAddr(tDev.getIpAddr());
|
||||
dev.setIpPort(tDev.getIpPort());
|
||||
|
||||
// 更新设备数据库
|
||||
disposeDeviceMapper.upgradeDisposeDevice(tDev);
|
||||
|
||||
|
|
|
@ -43,8 +43,7 @@ public class DisposeDeviceManagerServiceImpl implements DisposeDeviceManagerServ
|
|||
try {
|
||||
MulReturnType<ErrorCode, Long> ret = disposeDeviceManager.addDisposeDevice(v);
|
||||
v.setId(ret.getSecondParam());
|
||||
DisposeDevice dev = disposeDeviceManager.getDisposeDevices(v.getId(),v.getAreaCode()).get(0);
|
||||
rspList.add(new MulReturnType<>(ret.getFirstParam(), dev));
|
||||
rspList.add(new MulReturnType<>(ret.getFirstParam(), v));
|
||||
} catch (Exception e) {
|
||||
rspList.add(new MulReturnType<>(ErrorCode.ERR_SYSTEMEXCEPTION, v));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue