parent
04cdb57e8f
commit
54d9f4eed7
|
@ -523,10 +523,13 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService {
|
|||
// 启动新任务
|
||||
switch (ai.getDev().getDeviceType()) {
|
||||
case DPTECH_UMC:
|
||||
case DPTECH_BYPASS_UMC:
|
||||
dpTechDeviceTaskRun(ai, v, task);
|
||||
break;
|
||||
|
||||
case DPTECH_BYPASS_UMC:
|
||||
restfulDeviceTaskRun(ai, v, task, DisposeDeviceType.DPTECH_BYPASS_UMC);
|
||||
break;
|
||||
|
||||
case HAOHAN_PLATFORM:
|
||||
restfulDeviceTaskRun(ai, v, task, DisposeDeviceType.HAOHAN_PLATFORM);
|
||||
break;
|
||||
|
@ -597,10 +600,13 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService {
|
|||
|
||||
switch (ai.getDev().getDeviceType()) {
|
||||
case DPTECH_UMC:
|
||||
case DPTECH_BYPASS_UMC:
|
||||
dpTechDeviceTaskStop(ai, v, task);
|
||||
break;
|
||||
|
||||
case DPTECH_BYPASS_UMC:
|
||||
restfulDeviceTaskStop(ai, v, task, DisposeDeviceType.DPTECH_BYPASS_UMC);
|
||||
break;
|
||||
|
||||
case HAOHAN_PLATFORM:
|
||||
restfulDeviceTaskStop(ai, v, task, DisposeDeviceType.HAOHAN_PLATFORM);
|
||||
break;
|
||||
|
|
|
@ -192,7 +192,11 @@ public class DisposeAbilityRouterServiceImpl implements DisposeAbilityRouterServ
|
|||
@Async("deviceTaskExecutor")
|
||||
@Scheduled(fixedDelay = 1000)
|
||||
public void runPeriodTask() {
|
||||
getAllAbilityDevices().forEach(v -> v.getDb().periodTaskRuntime());
|
||||
getAllAbilityDevices().forEach(v -> {
|
||||
v.getDb().periodTaskRuntime();
|
||||
// 同步最新处置平台业务信息到设备
|
||||
v.getDb().upgradeServiceGroup(serviceGroupMapper.selectAll());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue