REM:
1. 设备同步状态时移入同步锁
This commit is contained in:
HuangXin 2021-01-27 18:37:47 +08:00
parent 97c00c3523
commit 862a352b28
1 changed files with 7 additions and 5 deletions

View File

@ -197,12 +197,14 @@ public class DisposeAbilityRouterServiceImpl implements DisposeAbilityRouterServ
@Async("deviceTaskExecutor")
@Scheduled(fixedDelay = 1000)
public void runPeriodTask() {
synchronized (this) {
getAllAbilityDevices().forEach(v -> {
v.getDb().periodTaskRuntime();
// 同步最新处置平台业务信息到设备
v.getDb().upgradeServiceGroup(serviceGroupMapper.selectAll());
});
}
}
/**
* Gets ability device hash key.