| | |
| | | import com.panzhihua.common.enums.*; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.dtos.community.*; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO; |
| | | import com.panzhihua.common.model.dtos.grid.PageComMngPopulationDTO; |
| | | import com.panzhihua.common.model.dtos.grid.PagePopulationListDTO; |
| | |
| | | /** |
| | | * 事件大屏统计接口 |
| | | * |
| | | * @param communityId 社区id |
| | | * @param screenEventDTO 请求参数 |
| | | * @return 统计结果 |
| | | */ |
| | | @Override |
| | | public R getScreenEvent(Long communityId) { |
| | | public R getScreenEvent(BigScreenEventDTO screenEventDTO) { |
| | | |
| | | Long communityId = screenEventDTO.getCommunityId(); |
| | | //创建统计返回参数 |
| | | EventStatisticsVO statisticsVO = new EventStatisticsVO(); |
| | | |
| | | //查询页面左边数据 |
| | | EventLeftStatisticsVO leftStatisticsVO = new EventLeftStatisticsVO(); |
| | | //查询左上数据 |
| | | EventLeftTopStatisticsVO leftTopStatisticsVO = this.baseMapper.getEventScreenLeftTop(communityId); |
| | | EventLeftTopStatisticsVO leftTopStatisticsVO = this.baseMapper.getEventScreenLeftTop(screenEventDTO); |
| | | //查询时间频发月份 |
| | | List<Integer> monthList = this.baseMapper.getFrequentlyEventMonth(communityId); |
| | | leftTopStatisticsVO.setOftenMonth(monthList); |
| | | leftStatisticsVO.setLeftTopStatisticsVO(leftTopStatisticsVO); |
| | | //查询左下数据 |
| | | EventLeftDownStatisticsVO leftDownStatisticsVO = this.baseMapper.getEventScreenLeftDown(communityId); |
| | | EventLeftDownStatisticsVO leftDownStatisticsVO = this.baseMapper.getEventScreenLeftDown(screenEventDTO); |
| | | leftStatisticsVO.setLeftDownStatisticsVO(leftDownStatisticsVO); |
| | | statisticsVO.setLeftStatisticsVO(leftStatisticsVO); |
| | | |
| | |
| | | statisticsVO.setGridStatisticsList(gridStatisticsList); |
| | | |
| | | //查询社区事件列表 |
| | | List<EventGridIncidentStatisticsVO> gridIncidentList = this.baseMapper.getEventScreenEventList(communityId); |
| | | List<EventGridIncidentStatisticsVO> gridIncidentList = this.baseMapper.getEventScreenEventList(screenEventDTO); |
| | | statisticsVO.setGridIncidentList(gridIncidentList); |
| | | |
| | | //查询小区列表 |