parent
5066478069
commit
2da1ca970e
|
@ -32,7 +32,7 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
||||||
* The Dispose capacity mapper.
|
* The Dispose capacity mapper.
|
||||||
*/
|
*/
|
||||||
@Resource
|
@Resource
|
||||||
DisposeCapacityMapper disposeCapacityMapper;
|
private DisposeCapacityMapper disposeCapacityMapper;
|
||||||
/**
|
/**
|
||||||
* The Dispose device mapper.
|
* The Dispose device mapper.
|
||||||
*/
|
*/
|
||||||
|
@ -59,7 +59,7 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
||||||
return new MulReturnType<>(ErrorCode.ERR_DATABASE, -1L);
|
return new MulReturnType<>(ErrorCode.ERR_DATABASE, -1L);
|
||||||
} else {
|
} else {
|
||||||
// 添加设备到缓存中,方便调用时查找
|
// 添加设备到缓存中,方便调用时查找
|
||||||
String devKey = dev.getDeviceName() + ":" + dev.getIpPort();
|
String devKey = dev.getIpAddr() + ":" + dev.getIpPort();
|
||||||
disposeDevice.put(devKey, dev);
|
disposeDevice.put(devKey, dev);
|
||||||
// 添加设备能力信息
|
// 添加设备能力信息
|
||||||
disposeCapacityMapper.addNewDisposeCapacity(dev.getDevCapacity());
|
disposeCapacityMapper.addNewDisposeCapacity(dev.getDevCapacity());
|
||||||
|
|
Loading…
Reference in New Issue