|
@@ -29,7 +29,6 @@ import com.ozs.utils.CameraUtil;
|
|
|
import com.ozs.utils.CaneraConfig;
|
|
|
import com.ozs.utils.RtspToMP4;
|
|
|
import com.ozs.web.core.config.GetCameraPreviewURL;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -89,7 +88,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
/**
|
|
|
* 所有相机列表+权限
|
|
|
*/
|
|
|
- @ApiOperation(value = "相机台账管理")
|
|
|
@GetMapping("/selectCameraAll")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult selectCameraAll() {
|
|
@@ -101,7 +99,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
/**
|
|
|
* 相机状态修改
|
|
|
*/
|
|
|
- @ApiOperation(value = "相机台账管理")
|
|
|
@GetMapping("/updateEnableOrNot")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult updateEnableOrNot(String id, Integer enableOrNot) {
|
|
@@ -122,7 +119,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
/**
|
|
|
* 根据相机编码获取视频url
|
|
|
*/
|
|
|
- @ApiOperation(value = "相机台账管理")
|
|
|
@GetMapping("/getCameraCode")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult getCameraCode(String cameraCode) {
|
|
@@ -133,7 +129,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "/homeGetInfo")
|
|
|
- @ApiOperation("根据相机ID、是否解除 获取相机信息、未解除信息")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult homeGetInfo(@RequestBody BaseCameraManagementHomeVo baseCameraManagementHomeVo) {
|
|
|
Integer isRelease = baseCameraManagementHomeVo.getIsRelease();
|
|
@@ -200,7 +195,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @param baseCameraManagementVo
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation(value = "相机台账管理分页")
|
|
|
@PostMapping("/list")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult selectBaseAccountManagement(@RequestBody BaseCameraManagementVo baseCameraManagementVo) {
|
|
@@ -280,7 +274,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/remove/{accountManagementIds}")
|
|
|
- @ApiOperation("删除相机台账管理信息")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.DELETE)
|
|
|
@Transactional
|
|
|
public AjaxResult removeAccountManagement(@PathVariable List<Long> accountManagementIds) {
|
|
@@ -304,7 +297,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/streamConversion")
|
|
|
- @ApiOperation("HTTP流转RTSP流")
|
|
|
@Transactional
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.INSERT)
|
|
|
public AjaxResult streamConversion(String code) {
|
|
@@ -319,7 +311,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/saveAccountManagement")
|
|
|
- @ApiOperation("新增相机台账管理信息")
|
|
|
@Transactional
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.INSERT)
|
|
|
public AjaxResult saveAccountManagement(@RequestBody BaseCameraManagement baseCameraManagement) {
|
|
@@ -412,7 +403,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/editAccountManagement")
|
|
|
- @ApiOperation("修改相机台账管理信息")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult editAccountManagement(@RequestBody BaseCameraManagement baseCameraManagement) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
@@ -485,7 +475,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
- @ApiOperation("根据相机ID获取相机台账管理信息")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult getInfo(@PathVariable Long id) throws InterruptedException {
|
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getById(id);
|
|
@@ -547,7 +536,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/getDate/{cameraCode}")
|
|
|
- @ApiOperation("视频上方显示的数据")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult getDate(@PathVariable String cameraCode) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
@@ -600,7 +588,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @ApiOperation("相机台账管理信息导入")
|
|
|
@PostMapping("/importBaseAccountManagement")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.IMPORT)
|
|
|
public AjaxResult importBaseAccountManagement(MultipartFile file, boolean updateSupport) throws Exception {
|
|
@@ -615,7 +602,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
*
|
|
|
* @param response
|
|
|
*/
|
|
|
- @ApiOperation("导出相机台账管理信息")
|
|
|
@PostMapping("/exportBaseAccountManagement")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.EXPORT)
|
|
|
public void exportBaseAccountManagement(HttpServletResponse response, @RequestBody BaseCameraManagementVo baseCameraManagementVo) {
|
|
@@ -656,7 +642,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation("相机台账管理信息模板下载")
|
|
|
@GetMapping("/downloaExcel")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public void downloadZip(HttpServletResponse response) {
|
|
@@ -670,7 +655,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("查询录像")
|
|
|
@GetMapping("/api/records/{cameraCode}")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecords(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode) {
|
|
@@ -683,7 +667,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
return new AjaxResult(200, "ok", CameraUtil.getPlayFlv(cameraCode, one.getChannel()));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("视频邀约")
|
|
|
@GetMapping("/api/invite/{cameraCode}")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult invite(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode) {
|
|
@@ -697,7 +680,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation("查询录像")
|
|
|
@GetMapping("/api/records/{cameraCode}/{flay}")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecords(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode,
|
|
@@ -711,7 +693,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
return new AjaxResult(200, "ok", CameraUtil.getPlayFlv(cameraCode, one.getChannel(), flay));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("查询回放视频根据报警ID")
|
|
|
@GetMapping("/api/getRecordByAlarmId")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult getRecordByAlarmId(@RequestParam("alarmId") String alarmId) {
|
|
@@ -747,7 +728,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("播放回放-new")
|
|
|
@PostMapping("/api/record")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult record(@Validated @RequestBody BaseCameraResVo vo) {
|
|
@@ -760,7 +740,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
return new AjaxResult(200, "ok", CameraUtil.getRecordList(one.getCameraCode(), vo.getStartTime(), vo.getEntTime(),one.getChannel()));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("批量查询录像")
|
|
|
@GetMapping("/api/recordsList")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecordsList(@RequestBody
|
|
@@ -787,7 +766,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation("播放回放-废弃")
|
|
|
@PostMapping("/api/invite")
|
|
|
public AjaxResult apiInvite(@Validated @RequestBody BaseCameraResVo vo) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
@@ -800,7 +778,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
return success();
|
|
|
}
|
|
|
|
|
|
-// @ApiOperation("播放回放")
|
|
|
// @PostMapping("/api/play")
|
|
|
// @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
// public AjaxResult play(@Validated @RequestBody BaseCameraResVo vo) {
|
|
@@ -818,7 +795,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
//// return success(CameraUtil.historyPlayList(one.getChannel(), vo.getStartTime(), vo.getEntTime()));
|
|
|
// }
|
|
|
|
|
|
- @ApiOperation("视频服务设备数量")
|
|
|
@GetMapping("/totalNumberOfDevices")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult totalNumberOfDevices() {
|
|
@@ -834,7 +810,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @param
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation("视频服务树形结构")
|
|
|
@PostMapping("/cameraTree")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult cameraTree(@RequestBody CameraTreeVo cameraTreeVo) {
|
|
@@ -888,8 +863,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
return success(cameraTree);
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation("关闭视频录制")
|
|
|
+
|
|
|
@GetMapping("/endRecording/{id}")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult endRecording(@PathVariable Long id) {
|
|
@@ -916,7 +890,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
return error();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("开启视频录制")
|
|
|
@GetMapping("/startRecording/{id}")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult startRecording(@PathVariable Long id) {
|
|
@@ -941,7 +914,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/getAlarm/{cameraCode}")
|
|
|
- @ApiOperation("根据视频ID获取详细信息")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult getAlarm(@PathVariable String cameraCode) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> queryWrapper = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
@@ -1016,7 +988,6 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/getCameraPreviewURL")
|
|
|
- @ApiOperation("天网接口测试")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult getCameraPreviewURL() {
|
|
|
String cameraPreviewURL = GetCameraPreviewURL.getCameraPreviewURL();
|
|
@@ -1024,14 +995,12 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/testURL")
|
|
|
- @ApiOperation("流媒体动态流测试")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult testURL() {
|
|
|
return AjaxResult.success(CameraUtil.getPlayFlv("live", "42010001541320000025"));
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/getAlarmRecord")
|
|
|
- @ApiOperation("报警回放本地测试")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult getAlarmRecord() {
|
|
|
List<BaseCameraManagement> list = baseCameraManagementService.list(new QueryWrapper<BaseCameraManagement>().eq("line_dir",2));
|
|
@@ -1041,14 +1010,12 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation(value = "结束录制")
|
|
|
@GetMapping(value = "/stop")
|
|
|
public AjaxResult stop(String id) {
|
|
|
return cameraUtil.stop(id);
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation(value = "视频压缩")
|
|
|
@GetMapping(value = "/videoCompression")
|
|
|
public AjaxResult videoCompression(String code) {
|
|
|
cameraUtil.videoCompression(code);
|