From a683718557e1e706ffcd12ecf326397714ac9475 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期四, 16 三月 2023 21:58:35 +0800 Subject: [PATCH] 驾驶舱接口 --- ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java index a608f4b..e8bf477 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java @@ -7,9 +7,11 @@ import com.ycl.entity.cockpitManage.TeamConstruction; import com.ycl.entity.cockpitManage.TeamIndex; import com.ycl.service.cockpitManage.ITeamConstructionService; +import com.ycl.service.equipment.IOrgGridService; import com.ycl.service.video.impl.IVideoPointService; import com.ycl.util.CheckApiUtil; import com.ycl.vo.cockpit.CockpitVO; +import com.ycl.vo.cockpit.statisticsEvents.GridMapVO; import com.ycl.vo.cockpit.statisticsEvents.StatisticsEventsVO; import com.ycl.vo.equipment.VideoPointVo; import io.swagger.annotations.Api; @@ -42,6 +44,8 @@ private ITeamConstructionService teamConstructionService; + private IOrgGridService orgGridService; + @Autowired public void setTeamConstructionService(ITeamConstructionService teamConstructionService) { this.teamConstructionService = teamConstructionService; @@ -50,6 +54,11 @@ @Autowired public void setVideoPointService(IVideoPointService videoPointService) { this.videoPointService = videoPointService; + } + + @Autowired + public void setOrgGridService(IOrgGridService orgGridService) { + this.orgGridService = orgGridService; } @ApiOperation(value = "鎵ф硶浜嬩欢") @@ -182,6 +191,14 @@ return CommonResult.success(page.getRecords()); } + @ApiOperation(value = "缃戞牸鍦板浘") + @GetMapping("/grid_map") + public CommonResult<List<GridMapVO>> gridMap(@Validated CockpitVO params) { + checkApiUtil.cockpit(params); + + List<GridMapVO> list = orgGridService.statisticsGridMap(params.getBeginTime(), params.getEndTime()); + return CommonResult.success(list); + } @ApiOperation(value = "闃熶紞寤鸿") @GetMapping("/team_construction") -- Gitblit v1.8.0