添加监控实时状态获取定时任务

This commit is contained in:
2025-01-15 09:40:42 +08:00
parent 2b9a21c063
commit 3a642833c4
6 changed files with 214 additions and 11 deletions

View File

@ -189,4 +189,6 @@ public class DeviceInfoController extends BaseController {
.eq(DeviceInformationMonitor::getProjectId,projectId);
return success(deviceInformationMonitorMapper.selectList(queryWrapper));
}
}

View File

@ -63,7 +63,6 @@ public class DeviceRealtimedataSeedlingGrowthController {
if (videoPlayMap.containsKey("playUrl")) {
Object playUrl = videoPlayMap.get("playUrl");
monitor.setPlayUrl(playUrl.toString());
}
if( videoPlayMap.containsKey("accessToken")){
Object accessToken = videoPlayMap.get("accessToken");
@ -76,4 +75,16 @@ public class DeviceRealtimedataSeedlingGrowthController {
monitor.setStatus((Long) status);
}
}
/**
* 更新设备状态测试接口
* @return
* @throws Exception
*/
@GetMapping("/status")
public AjaxResult getMonitorDeviceRealtimeStatusData() throws Exception {
return AjaxResult.success(yingshiyunService.getMonitorDeviceRealtimeStatusData());
}
}