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