From 680ead20fbd8c2e2eb7665e493d7ede20061ac7b Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期五, 17 三月 2023 13:57:06 +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