REM:
1. 同步设备状态时,不再添加新设备
This commit is contained in:
HuangXin 2021-02-02 18:40:50 +08:00
parent fe8776d0e2
commit f649ac0207
1 changed files with 0 additions and 7 deletions

View File

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