| 
						
						
							
								
							
						
						
					 | 
					@ -136,6 +136,15 @@ public class UserAnalysisServiceImpl implements UserAnalysisService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                if(dimInitResultDto.getAgencyId().equals(userSubAgencyResDTO.getAgencyId())){ | 
					 | 
					 | 
					                if(dimInitResultDto.getAgencyId().equals(userSubAgencyResDTO.getAgencyId())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    flag=true; | 
					 | 
					 | 
					                    flag=true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    //居民、热心居民、党员总数,用于排序
 | 
					 | 
					 | 
					                    //居民、热心居民、党员总数,用于排序
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if(null==userSubAgencyResDTO.getPartymemberTotal()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        userSubAgencyResDTO.setPartymemberTotal(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if(null==userSubAgencyResDTO.getWarmHeartedTotal()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        userSubAgencyResDTO.setWarmHeartedTotal(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if(null==userSubAgencyResDTO.getResiTotal()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        userSubAgencyResDTO.setResiTotal(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    dimInitResultDto.setTotal(userSubAgencyResDTO.getPartymemberTotal() | 
					 | 
					 | 
					                    dimInitResultDto.setTotal(userSubAgencyResDTO.getPartymemberTotal() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            +userSubAgencyResDTO.getWarmHeartedTotal() | 
					 | 
					 | 
					                            +userSubAgencyResDTO.getWarmHeartedTotal() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            +userSubAgencyResDTO.getResiTotal()); | 
					 | 
					 | 
					                            +userSubAgencyResDTO.getResiTotal()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -152,6 +161,8 @@ public class UserAnalysisServiceImpl implements UserAnalysisService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        default: | 
					 | 
					 | 
					                        default: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            break; | 
					 | 
					 | 
					                            break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    logger.info(String.format("找到当前机关(agencyId=%s,agencyName=%s)对应的数据,当前循环",dimInitResultDto.getAgencyId(),dimInitResultDto.getName())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if(!flag){ | 
					 | 
					 | 
					            if(!flag){ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -229,6 +240,15 @@ public class UserAnalysisServiceImpl implements UserAnalysisService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                if(dimInitResultDto.getGridId().equals(userSubGridResDTO.getGridId())){ | 
					 | 
					 | 
					                if(dimInitResultDto.getGridId().equals(userSubGridResDTO.getGridId())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    flag=true; | 
					 | 
					 | 
					                    flag=true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    //居民、热心居民、党员总数,用于排序
 | 
					 | 
					 | 
					                    //居民、热心居民、党员总数,用于排序
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if(null==userSubGridResDTO.getPartymemberTotal()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        userSubGridResDTO.setPartymemberTotal(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if(null==userSubGridResDTO.getWarmHeartedTotal()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        userSubGridResDTO.setWarmHeartedTotal(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    if(null==userSubGridResDTO.getResiTotal()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        userSubGridResDTO.setResiTotal(0); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    dimInitResultDto.setTotal(userSubGridResDTO.getPartymemberTotal() | 
					 | 
					 | 
					                    dimInitResultDto.setTotal(userSubGridResDTO.getPartymemberTotal() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            +userSubGridResDTO.getWarmHeartedTotal() | 
					 | 
					 | 
					                            +userSubGridResDTO.getWarmHeartedTotal() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            +userSubGridResDTO.getResiTotal()); | 
					 | 
					 | 
					                            +userSubGridResDTO.getResiTotal()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -246,6 +266,8 @@ public class UserAnalysisServiceImpl implements UserAnalysisService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            break; | 
					 | 
					 | 
					                            break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                logger.info(String.format("找到当前网格(gridId=%s,gridName=%s)对应的数据,当前循环",dimInitResultDto.getGridId(),dimInitResultDto.getName())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if(!flag){ | 
					 | 
					 | 
					            if(!flag){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                logger.error(String.format("直属网格注册用户数缺少记录:date_id=%s,gridId=%s",formDTO.getDateId(),dimInitResultDto.getGridId())); | 
					 | 
					 | 
					                logger.error(String.format("直属网格注册用户数缺少记录:date_id=%s,gridId=%s",formDTO.getDateId(),dimInitResultDto.getGridId())); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -341,7 +363,8 @@ public class UserAnalysisServiceImpl implements UserAnalysisService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        default: | 
					 | 
					 | 
					                        default: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            break; | 
					 | 
					 | 
					                            break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					                    logger.info(String.format("找到当前日期(dateorMonthId=%s)对应的数据,跳出当前循环",dim.getDateOrMonthId())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    break; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                } | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if(!flag){ | 
					 | 
					 | 
					            if(!flag){ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -382,7 +405,7 @@ public class UserAnalysisServiceImpl implements UserAnalysisService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }else if(UserAnalysisConstant.MONTH_TYPE.equals(type)){ | 
					 | 
					 | 
					        }else if(UserAnalysisConstant.MONTH_TYPE.equals(type)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            List<String> monthList= DateUtils.getMonthBetween(DateUtils.getBeforeNMonth(12), | 
					 | 
					 | 
					            List<String> monthList= DateUtils.getMonthBetween(DateUtils.getBeforeNMonth(12), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                    DateUtils.getBeforeNMonth(1)); | 
					 | 
					 | 
					                    DateUtils.getBeforeNMonth(0)); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            for(String monthId:monthList){ | 
					 | 
					 | 
					            for(String monthId:monthList){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                String date=DateUtils.getxAxisDatePattern(monthId,"/"); | 
					 | 
					 | 
					                String date=DateUtils.getxAxisDatePattern(monthId,"/"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                //居民
 | 
					 | 
					 | 
					                //居民
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |