fuliqi
2023-12-18 f11afb84d32ed6d2b582ed193db2f9805cd365ec
ycl-platform/src/main/java/com/ycl/controller/video/VideoPointController.java
@@ -37,13 +37,14 @@
    @LogSave(operationType = "点位管理", contain = "查询点位")
    public CommonResult searchVideoPoint(@RequestParam Long size,
                                         @RequestParam Long current,
                                         @RequestParam(required = false) Integer type,
                                         @RequestParam(required = false) Integer streetId,
                                         @RequestParam(required = false) Integer communityId) {
        IPage<VideoPointVo> pointVoIPage = iVideoPointService.getList(streetId, communityId, current.intValue(), size.intValue());
        pointVoIPage.getRecords()
                .stream()
                .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0)));
        IPage<VideoPointVo> pointVoIPage = iVideoPointService.getList(streetId, communityId, type, current.intValue(), size.intValue());
//        pointVoIPage.getRecords()
//                .stream()
//                .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0)));
        return CommonResult.success(pointVoIPage);
    }
@@ -51,6 +52,7 @@
    @ApiOperation("添加")
    @LogSave(operationType = "点位管理", contain = "添加点位")
    public CommonResult addVideoPoint(@RequestBody VideoPoint videoPoint) {
        videoPoint.setType(0);
        return CommonResult.success(iVideoPointService.save(videoPoint));
    }