|
@@ -579,6 +579,21 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
return new AjaxResult(200, "ok", CameraUtil.getPlayFlv(cameraCode, one.getChannel(), flay));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("查询录像")
|
|
|
+ @GetMapping("/api/records/{cameraCode}/{flay}/{format}")
|
|
|
+ @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ public AjaxResult apiRecords(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode,
|
|
|
+ @PathVariable @NotNull(message = "条件不能为空") boolean flay,
|
|
|
+ @PathVariable @NotNull(message = "格式不能为空") String format) {
|
|
|
+ LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
+ lw.eq(BaseCameraManagement::getCameraCode, cameraCode);
|
|
|
+ BaseCameraManagement one = baseCameraManagementService.getOne(lw);
|
|
|
+ if (ObjectUtils.isEmpty(one)) {
|
|
|
+ throw new BaseException("相机编号【" + cameraCode + "】不存在");
|
|
|
+ }
|
|
|
+ return new AjaxResult(200, "ok", CameraUtil.getPlayFlv(cameraCode, one.getChannel(), flay, format));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("批量查询录像")
|
|
|
@GetMapping("/api/recordsList")
|
|
|
@Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|