diff --git a/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java b/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java index 06dda68d..58b8b2ba 100644 --- a/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java +++ b/src/main/java/com/dispose/service/impl/DisposeAbilityRouterServiceImpl.java @@ -226,33 +226,10 @@ public class DisposeAbilityRouterServiceImpl implements DisposeAbilityRouterServ // 如果数据库中设备不存在,那么删除该设备 v.getDev().setStatus(ObjectStatus.DELETED); } else { - v.getDev().setStatus(ObjectStatus.NORMAL); - // 数据库中的设备信息和缓存中的设备信息同步 - v.getDev().getDevCapacity().forEach(k -> dev.getDevCapacity().forEach(m -> { - if (k.getId().equals(m.getId())) { - if (!k.getObjectType().equals(m.getObjectType())) { - k.setObjectType(m.getObjectType()); - } - - if (!k.getIpType().equals(m.getIpType())) { - k.setIpType(m.getIpType()); - } - - if (!k.getReserveNetflow().equals(m.getReserveNetflow())) { - k.setReserveNetflow(m.getReserveNetflow()); - } - - if (!k.getProtectIp().equals(m.getProtectIp())) { - k.setProtectIp(m.getProtectIp()); - } - - if (!k.getCapacityType().equals(m.getCapacityType())) { - k.setCapacityType(m.getCapacityType()); - } - } - })); + //数据库中的设备信息和缓存中的设备信息同步 + v.getDev().setDevCapacity(dev.getDevCapacity()); v.getDb().periodTaskRuntime(); // 同步最新处置平台业务信息到设备