| | |
| | | }); |
| | | } |
| | | statisticsVO.setVillageStatisticsList(villageStatisticsList); |
| | | // 查询社区事件列表 |
| | | List<EventGridIncidentStatisticsVO> gridIncidentList = comMngPopulationDAO.getGridsGovernanceEventList(communityId); |
| | | if (!gridIncidentList.isEmpty()) { |
| | | gridIncidentList.forEach(e -> { |
| | | if (e.getEventType().equals(2)) { |
| | | String[] lngLatString = e.getLatLng().split(","); |
| | | e.setLatLng(lngLatString[1] + "," + lngLatString[0]); |
| | | } |
| | | }); |
| | | } |
| | | statisticsVO.setGridIncidentList(gridIncidentList); |
| | | //事件分析新增折线数据 |
| | | Date nowDate = new Date(); |
| | | List<StatisticsCommVO> eventAddPolylineData = comPropertyDao.getEventAddPolylineData(communityId); |
| | |
| | | return R.ok(comActActivityDAO.indexActList(page, pageBaseDTO, false)); |
| | | } |
| | | |
| | | /** |
| | | * 清网治格-根据事件分类获取近1月的社区事件数据 |
| | | * @param type |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R getEventList(Integer type, Long communityId) { |
| | | // 查询社区事件列表 |
| | | List<EventGridIncidentStatisticsVO> gridIncidentList = comMngPopulationDAO.getGridsGovernanceEventList(communityId); |
| | | List<EventGridIncidentStatisticsVO> returnGridIncidentList = new ArrayList<>(); |
| | | if (!gridIncidentList.isEmpty()) { |
| | | gridIncidentList.forEach(e -> { |
| | | if (e.getEventType().equals(2)) { |
| | | String[] lngLatString = e.getLatLng().split(","); |
| | | e.setLatLng(lngLatString[1] + "," + lngLatString[0]); |
| | | } |
| | | }); |
| | | returnGridIncidentList = gridIncidentList.stream().filter(e -> type.equals(e.getType())).collect(Collectors.toList()); |
| | | } |
| | | return R.ok(returnGridIncidentList); |
| | | } |
| | | |
| | | private Page retrievePage(PageBaseDTO pageBaseDTO) { |
| | | Long pageNum = pageBaseDTO.getPageNum(); |
| | | Long size = pageBaseDTO.getPageSize(); |