parent
e8599ad967
commit
88f6cd8ce1
|
@ -215,6 +215,13 @@ 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())) {
|
||||
|
|
Loading…
Reference in New Issue