|
|
@ -1130,7 +1130,7 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
|
} |
|
|
|
ScreenCustomerAgencyDTO agencyDTO = indexService.getAgencyInfo(formDTO.getAgencyId()); |
|
|
|
if (CollectionUtils.isNotEmpty(customerRelation.haveSubCustomer(agencyDTO.getCustomerId()))) { |
|
|
|
|
|
|
|
if (OrgConstant.PROVINCE.equals(agencyDTO.getLevel()) || OrgConstant.CITY.equals(agencyDTO.getLevel()) || OrgConstant.DISTRICT.equals(agencyDTO.getLevel())) { |
|
|
|
List<String> subAgencyIds = indexService.getAgencyByAreaCodeAgencyId(formDTO.getAgencyId(), agencyDTO.getAreaCode()); |
|
|
|
if (CollectionUtils.isEmpty(subAgencyIds)) { |
|
|
|
subAgencyIds = new ArrayList<>(); |
|
|
@ -1139,19 +1139,19 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
|
List<FactAgencyGovernDailyEntity> list = dataStatsDao.getAgencyGovernDaily(subAgencyIds, formDTO.getDateId()); |
|
|
|
if (CollectionUtils.isNotEmpty(list)) { |
|
|
|
//问题解决总数
|
|
|
|
Integer problemResolvedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getProblemResolvedCount).sum(); |
|
|
|
Integer problemResolvedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity::getProblemResolvedCount).sum(); |
|
|
|
//未出小组即未转议题的:话题关闭已解决数
|
|
|
|
Integer inGroupTopicResolvedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getInGroupTopicResolvedCount).sum(); |
|
|
|
Integer inGroupTopicResolvedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity::getInGroupTopicResolvedCount).sum(); |
|
|
|
//未出小组即未转议题的:话题关闭无需解决数
|
|
|
|
Integer inGroupTopicUnResolvedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getInGroupTopicUnResolvedCount).sum(); |
|
|
|
Integer inGroupTopicUnResolvedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity::getInGroupTopicUnResolvedCount).sum(); |
|
|
|
//未出当前网格的,结案项目数
|
|
|
|
Integer gridSelfGovernProjectTotal = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getGridSelfGovernProjectTotal).sum(); |
|
|
|
Integer gridSelfGovernProjectTotal = list.stream().mapToInt(FactAgencyGovernDailyEntity::getGridSelfGovernProjectTotal).sum(); |
|
|
|
//由社区结案的项目总数
|
|
|
|
Integer communityClosedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getCommunityClosedCount).sum(); |
|
|
|
Integer communityClosedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity::getCommunityClosedCount).sum(); |
|
|
|
//由街道结案的项目总数
|
|
|
|
Integer streetClosedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getStreetClosedCount).sum(); |
|
|
|
Integer streetClosedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity::getStreetClosedCount).sum(); |
|
|
|
//由区直部门结案的项目总数
|
|
|
|
Integer districtDeptClosedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity ::getDistrictDeptClosedCount).sum(); |
|
|
|
Integer districtDeptClosedCount = list.stream().mapToInt(FactAgencyGovernDailyEntity::getDistrictDeptClosedCount).sum(); |
|
|
|
|
|
|
|
resultDTO.setProblemResolvedCount(problemResolvedCount); |
|
|
|
resultDTO.setGroupSelfGovernRatio(getPercentage(inGroupTopicResolvedCount + inGroupTopicUnResolvedCount, problemResolvedCount)); |
|
|
@ -1163,6 +1163,7 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//1.按日期查询当前组织事件治理指数
|
|
|
|
List<String> agencyIds = new ArrayList<>(); |
|
|
|
agencyIds.add(formDTO.getAgencyId()); |
|
|
@ -1381,6 +1382,7 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
|
if (OrgConstant.AGENCY.equals(formDTO.getOrgType())) { |
|
|
|
ScreenCustomerAgencyDTO agencyDTO = indexService.getAgencyInfo(formDTO.getOrgId()); |
|
|
|
if (CollectionUtils.isNotEmpty(customerRelation.haveSubCustomer(agencyDTO.getCustomerId()))) { |
|
|
|
if (OrgConstant.PROVINCE.equals(agencyDTO.getLevel()) || OrgConstant.CITY.equals(agencyDTO.getLevel()) || OrgConstant.DISTRICT.equals(agencyDTO.getLevel())) { |
|
|
|
ScreenGovernRankDataDailyDTO governData = indexService.getGovernRank(formDTO.getOrgId(), agencyDTO.getAreaCode(), formDTO.getDateId()); |
|
|
|
resultDTO.setGovernRatio(getPercentage(governData.getGovernCount(), governData.getClosedCount())); |
|
|
|
resultDTO.setResolvedRatio(getPercentage(governData.getResolvedCount(), governData.getClosedCount())); |
|
|
@ -1389,6 +1391,7 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//1.按类型、日期查询治理指数下响应解决满意自治四个统计率
|
|
|
|
GovrnRatioResultDTO dto = indexService.governRatio(formDTO); |
|
|
|