添加监控实时状态获取定时任务
This commit is contained in:
@ -189,4 +189,6 @@ public class DeviceInfoController extends BaseController {
|
||||
.eq(DeviceInformationMonitor::getProjectId,projectId);
|
||||
return success(deviceInformationMonitorMapper.selectList(queryWrapper));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user