|
@@ -87,6 +87,8 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
private CameraUtil cameraUtil;
|
|
|
@Autowired
|
|
|
private ISysDictTypeService dictTypeService;
|
|
|
+ @Autowired
|
|
|
+ private TerminalHeartbeatLogService terminalHeartbeatLogService;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -1036,5 +1038,15 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
cameraUtil.videoCompression(code);
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping(value = "/terminalHeartbeatLog")
|
|
|
+ public AjaxResult terminalHeartbeatLog() {
|
|
|
+ TerminalHeartbeatLog terminalHeartbeatLog=new TerminalHeartbeatLog();
|
|
|
+ terminalHeartbeatLog.setId(terminalHeartbeatLogService.count()+1);
|
|
|
+ terminalHeartbeatLog.setCameraCode("111");
|
|
|
+ terminalHeartbeatLog.setCreateTime(new Date());
|
|
|
+ boolean save = terminalHeartbeatLogService.save(terminalHeartbeatLog);
|
|
|
+ return AjaxResult.success(save);
|
|
|
+ }
|
|
|
}
|
|
|
|