From 2da1ca970e64854d10d1ba25f499259cd9f1ad33 Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Tue, 4 Aug 2020 16:25:01 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=94=B9=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BF=A1=E6=81=AF=E8=83=BD=E5=8A=9B=E5=86=85=E5=AD=98?= =?UTF-8?q?=E4=B8=AD=E7=9A=84key=E5=80=BC=E4=B8=BAIP=E5=92=8C=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dispose/manager/impl/DisposeDeviceManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/dispose/manager/impl/DisposeDeviceManagerImpl.java b/src/main/java/com/dispose/manager/impl/DisposeDeviceManagerImpl.java index 0380c050..2a1cbfdf 100644 --- a/src/main/java/com/dispose/manager/impl/DisposeDeviceManagerImpl.java +++ b/src/main/java/com/dispose/manager/impl/DisposeDeviceManagerImpl.java @@ -32,7 +32,7 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager { * The Dispose capacity mapper. */ @Resource - DisposeCapacityMapper disposeCapacityMapper; + private DisposeCapacityMapper disposeCapacityMapper; /** * The Dispose device mapper. */ @@ -59,7 +59,7 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager { return new MulReturnType<>(ErrorCode.ERR_DATABASE, -1L); } else { // 添加设备到缓存中,方便调用时查找 - String devKey = dev.getDeviceName() + ":" + dev.getIpPort(); + String devKey = dev.getIpAddr() + ":" + dev.getIpPort(); disposeDevice.put(devKey, dev); // 添加设备能力信息 disposeCapacityMapper.addNewDisposeCapacity(dev.getDevCapacity());