| | |
| | | import com.ycl.util.VideoUtil; |
| | | import com.ycl.vo.cockpit.CockpitVO; |
| | | import com.ycl.vo.cockpit.aiIot.AIIotVO; |
| | | import com.ycl.vo.cockpit.aiIot.EfficiencyVO; |
| | | import com.ycl.vo.cockpit.aiIot.VideoVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @GetMapping("/video") |
| | | public CommonResult video(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | return CommonResult.success(iVideoPointService.list(new LambdaQueryWrapper<VideoPoint>().eq(params.getStreetId()==null,VideoPoint::getStreetId,params.getStreetId())).stream().map(item -> { |
| | | /// TODO: 2022/12/13 视频点位设备为空 没数据 |
| | | return CommonResult.success(iVideoPointService.list(new LambdaQueryWrapper<VideoPoint>().eq(params.getStreetId() != null, VideoPoint::getStreetId, params.getStreetId()).isNotNull(VideoPoint::getPlatResourceId)).stream().map(item -> { |
| | | VideoVO videoVO = new VideoVO(); |
| | | videoVO.setName(item.getName()); |
| | | videoVO.setBrand(item.getEquipmentBrand()); |
| | |
| | | |
| | | @ApiOperation(value = "AI算法效能") |
| | | @GetMapping("/efficiency") |
| | | public CommonResult<List<AIIotVO.EfficiencyVO>> efficiency(@Validated CockpitVO params) { |
| | | public CommonResult efficiency(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | List<AIIotVO.EfficiencyVO> efficiencyVOS = new ArrayList<>(); |
| | | AIIotVO.EfficiencyVO a = null; |
| | | List<EfficiencyVO> efficiencyVOS = new ArrayList<>(); |
| | | for (int i = 0; i < 4; i++) { |
| | | a = new AIIotVO.EfficiencyVO(); |
| | | EfficiencyVO a = new EfficiencyVO(); |
| | | a.setType("道路破损"); |
| | | a.setCount(12); |
| | | a.setRatio(new BigDecimal("0.63").setScale(2, RoundingMode.HALF_UP)); |