parent
cd9cc0d617
commit
40f044c2e7
|
@ -103,9 +103,12 @@ public class DisposeAbilityRouterServiceImpl implements DisposeAbilityRouterServ
|
|||
*/
|
||||
@Override
|
||||
public void upgradeDisposeDevice(Long id, ObjectStatus objStatus) {
|
||||
getAllAbilityDevices().stream()
|
||||
.filter(v -> v.getDev().getId().equals(id))
|
||||
.forEach(v -> v.getDev().setStatus(objStatus));
|
||||
DisposeDevice dev = disposeDeviceManager.getDisposeDeviceById(id);
|
||||
for (AbilityInfo ai : getAllAbilityDevices()) {
|
||||
if (ai.getDev().getId().equals(id)) {
|
||||
ai.setDev(dev);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue