REM:
1. 修改设备信息能力内存中的key值为IP和端口号
This commit is contained in:
chenlinghy 2020-08-04 16:25:01 +08:00
parent 5066478069
commit 2da1ca970e
1 changed files with 2 additions and 2 deletions

View File

@ -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());