| | |
| | | if (userTag != null) { |
| | | if (userTag.getSysFlag().equals(0)) { |
| | | Integer count = comMngPopulationDAO.getSpecialStatisticsByLabel(userTag.getTagName(),communityId); |
| | | otherSpecialVO.setSum(otherSpecialVO.getSum() + count); |
| | | otherSpecialVO.setPercent(otherSpecialVO.getSum()*100/countAll); |
| | | IndexSpecialStatisticsVO specialStatisticsVO = new IndexSpecialStatisticsVO(); |
| | | otherSpecialVO.setSum(otherSpecialVO.getSum()+count); |
| | | specialStatisticsVO.setTitle(userTag.getTagName()); |
| | | specialStatisticsVO.setSum(count); |
| | | specialStatisticsVO.setPercent(specialStatisticsVO.getSum()*100/countAll); |
| | | specialStatisticsVOList.add(specialStatisticsVO); |
| | | } else { |
| | | if (StringUtils.isNotEmpty(userTag.getTagName())) { |
| | | if (userTag.getTagName().equals("高龄老人")) { |
| | | IndexSpecialStatisticsVO specialStatisticsVO = new IndexSpecialStatisticsVO(); |
| | | specialStatisticsVO.setTitle(userTag.getTagName()); |
| | | specialStatisticsVO.setSum(comMngPopulationDAO.getStatisticsCount(communityId)); |
| | | specialStatisticsVO.setPercent(specialStatisticsVO.getSum()*100/countAll); |
| | | specialStatisticsVOList.add(specialStatisticsVO); |
| | | } else { |
| | | IndexSpecialStatisticsVO specialStatisticsVO = new IndexSpecialStatisticsVO(); |
| | | specialStatisticsVO.setTitle(userTag.getTagName()); |
| | | Integer count = comMngPopulationDAO.getSpecialStatisticsByLabel(userTag.getTagName(),communityId); |
| | | otherSpecialVO.setSum(otherSpecialVO.getSum()+count); |
| | | specialStatisticsVO.setSum(count); |
| | | specialStatisticsVO.setPercent(specialStatisticsVO.getSum()*100/countAll); |
| | | specialStatisticsVOList.add(specialStatisticsVO); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | otherSpecialVO.setSum(countAll-otherSpecialVO.getSum()); |
| | | otherSpecialVO.setPercent(otherSpecialVO.getSum()*100/countAll); |
| | | specialStatisticsVOList.add(otherSpecialVO); |
| | | indexInfo.setSpecialStatisticsVOList(specialStatisticsVOList); |
| | | // 查询网格化治理 |