From f649ac020791c24bcac6f8600db73aa06384ba72 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Tue, 2 Feb 2021 18:40:50 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E5=90=8C=E6=AD=A5=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=8A=B6=E6=80=81=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DisposeAbilityRouterServiceImpl.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java b/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java index e1facea1..86ed2833 100644 --- a/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java +++ b/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java @@ -215,13 +215,6 @@ public class DisposeAbilityRouterServiceImpl implements DisposeAbilityRouterServ // 同步最新处置平台业务信息到设备 v.getDb().upgradeServiceGroup(serviceGroupMapper.selectAll()); - //如果数据库存在,缓存没有该信息,则添加进缓存 - for (DisposeDevice d: disposeDeviceManager.getAllNormalDisposeDevices()) { - if(getAllAbilityDevices().stream().noneMatch(k->k.getDev().getId().equals(d.getId()))){ - addDisposeAbilityDevice(d); - } - } - // 数据库中的设备信息和缓存中的设备信息同步 v.getDev().getDevCapacity().forEach(k -> dev.getDevCapacity().forEach(m -> { if (k.getId().equals(m.getId())) {