|
@ -157,7 +157,7 @@ public class CoverageServiceImpl implements CoverageService { |
|
|
for (GovOrgCoverageService.CategoryCoverageMapping e : ccm) { |
|
|
for (GovOrgCoverageService.CategoryCoverageMapping e : ccm) { |
|
|
|
|
|
|
|
|
Integer tempCount = doDataListCount(EpmetRequestHolder.getLoginUserCustomerId(), agencyId, agencyPath, e.getPlaceType(), |
|
|
Integer tempCount = doDataListCount(EpmetRequestHolder.getLoginUserCustomerId(), agencyId, agencyPath, e.getPlaceType(), |
|
|
e.getCategoryKey(), search); |
|
|
e.getCategoryKey(), search,null); |
|
|
lastTotalCount = totalCount; |
|
|
lastTotalCount = totalCount; |
|
|
totalCount += tempCount; |
|
|
totalCount += tempCount; |
|
|
|
|
|
|
|
@ -560,18 +560,18 @@ public class CoverageServiceImpl implements CoverageService { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public Integer doDataListCount(String customerId, String agencyId, String staffOrgIds, String placeType, |
|
|
public Integer doDataListCount(String customerId, String agencyId, String staffOrgIds, String placeType, |
|
|
String categoryKey, String search) { |
|
|
String categoryKey, String search,String gridId) { |
|
|
|
|
|
|
|
|
if (CoveragePlaceTypeEnum.RESI.getCode().equals(placeType)) { |
|
|
if (CoveragePlaceTypeEnum.RESI.getCode().equals(placeType)) { |
|
|
// 使用分类查询居民信息
|
|
|
// 使用分类查询居民信息
|
|
|
return icResiService.countResisByCategories4Coverage(customerId, agencyId, |
|
|
return icResiService.countResisByCategories4Coverage(customerId, agencyId, |
|
|
staffOrgIds, categoryKey, search); |
|
|
staffOrgIds, categoryKey, search,gridId); |
|
|
} else if (CoveragePlaceTypeEnum.SPECIAL_RESI.getCode().equals(placeType)) { |
|
|
} else if (CoveragePlaceTypeEnum.SPECIAL_RESI.getCode().equals(placeType)) { |
|
|
// 特殊人群
|
|
|
// 特殊人群
|
|
|
return icResiService.countSpecialResisBySpecialType(customerId, agencyId, staffOrgIds, categoryKey, search); |
|
|
return icResiService.countSpecialResisBySpecialType(customerId, agencyId, staffOrgIds, categoryKey, search); |
|
|
} else if (CoveragePlaceTypeEnum.EVENT.getCode().equals(placeType)) { |
|
|
} else if (CoveragePlaceTypeEnum.EVENT.getCode().equals(placeType)) { |
|
|
// 难点痛点
|
|
|
// 难点痛点
|
|
|
return govProjectService.countIcEventEntities(customerId, staffOrgIds, search, true); |
|
|
return govProjectService.countIcEventEntities(customerId, staffOrgIds, search, true,gridId); |
|
|
} else if (CoveragePlaceTypeEnum.CITY_MANAGEMENT.getCode().equals(placeType)) { |
|
|
} else if (CoveragePlaceTypeEnum.CITY_MANAGEMENT.getCode().equals(placeType)) { |
|
|
// 城市资源管理
|
|
|
// 城市资源管理
|
|
|
return orgCoverageService.countCityResourceEntities(customerId, staffOrgIds, search, categoryKey); |
|
|
return orgCoverageService.countCityResourceEntities(customerId, staffOrgIds, search, categoryKey); |
|
@ -589,7 +589,7 @@ public class CoverageServiceImpl implements CoverageService { |
|
|
return orgCoverageService.countDangerousChemicalEntities(customerId, staffOrgIds, search, categoryKey); |
|
|
return orgCoverageService.countDangerousChemicalEntities(customerId, staffOrgIds, search, categoryKey); |
|
|
} else if (CoveragePlaceTypeEnum.ENTERPRISE_PATROL.getCode().equals(placeType)) { |
|
|
} else if (CoveragePlaceTypeEnum.ENTERPRISE_PATROL.getCode().equals(placeType)) { |
|
|
// 企事业单位巡查
|
|
|
// 企事业单位巡查
|
|
|
return orgCoverageService.countEnterprisePatrol(customerId, agencyId, staffOrgIds, search, categoryKey,null); |
|
|
return orgCoverageService.countEnterprisePatrol(customerId, agencyId, staffOrgIds, search, categoryKey,null,null); |
|
|
} else if (CoveragePlaceTypeEnum.GROUP_RENT.getCode().equals(placeType)) { |
|
|
} else if (CoveragePlaceTypeEnum.GROUP_RENT.getCode().equals(placeType)) { |
|
|
// 群租房。出租的房屋,住的人口超过5人属于群租房(是个规定
|
|
|
// 群租房。出租的房屋,住的人口超过5人属于群租房(是个规定
|
|
|
return orgCoverageService.countByResiNumber(customerId, staffOrgIds, search, 5, HOUSE_RENT_FLAG_RENT); |
|
|
return orgCoverageService.countByResiNumber(customerId, staffOrgIds, search, 5, HOUSE_RENT_FLAG_RENT); |
|
@ -602,7 +602,7 @@ public class CoverageServiceImpl implements CoverageService { |
|
|
} else if(CoveragePlaceTypeEnum.ENTERPRISE_PATROL_UNQUALIFIED.getCode().equals(placeType)){ |
|
|
} else if(CoveragePlaceTypeEnum.ENTERPRISE_PATROL_UNQUALIFIED.getCode().equals(placeType)){ |
|
|
// 企事业单位巡查
|
|
|
// 企事业单位巡查
|
|
|
// 最新巡查结果【0:合格 1:不合格】
|
|
|
// 最新巡查结果【0:合格 1:不合格】
|
|
|
return orgCoverageService.countEnterprisePatrol(customerId, agencyId, staffOrgIds, search, categoryKey,NumConstant.ONE_STR ); |
|
|
return orgCoverageService.countEnterprisePatrol(customerId, agencyId, staffOrgIds, search, categoryKey,NumConstant.ONE_STR,gridId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
@ -1068,10 +1068,24 @@ public class CoverageServiceImpl implements CoverageService { |
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
resultList=ConvertUtils.sourceToTarget(list,DataListLeftSubTotalResDTO.class); |
|
|
resultList=ConvertUtils.sourceToTarget(list,DataListLeftSubTotalResDTO.class); |
|
|
for(DataListLeftSubTotalResDTO orgRes:resultList){ |
|
|
for(DataListLeftSubTotalResDTO orgRes:resultList){ |
|
|
|
|
|
String gridId=StrConstant.EPMETY_STR; |
|
|
|
|
|
String agencyId=StrConstant.EPMETY_STR; |
|
|
|
|
|
String orgIdPath=StrConstant.EPMETY_STR; |
|
|
|
|
|
if(OrgConstant.AGENCY.equals(orgRes.getOrgType())){ |
|
|
|
|
|
agencyId=orgRes.getOrgId(); |
|
|
|
|
|
AgencyInfoCache agencyInfoCache=CustomerOrgRedis.getAgencyInfo(orgRes.getOrgId()); |
|
|
|
|
|
if (StringUtils.isNotBlank(agencyInfoCache.getPids()) && !"0".equals(agencyInfoCache.getPids()) && !"0".equals(agencyInfoCache)) { |
|
|
|
|
|
orgIdPath = agencyInfoCache.getPids().concat(":").concat(agencyId); |
|
|
|
|
|
} else { |
|
|
|
|
|
orgIdPath = agencyId; |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
gridId=orgRes.getOrgId(); |
|
|
|
|
|
GridInfoCache gridInfoCache=CustomerOrgRedis.getGridInfo(orgRes.getOrgId()); |
|
|
|
|
|
orgIdPath=gridInfoCache.getPids().concat(":").concat(gridId); |
|
|
|
|
|
} |
|
|
|
|
|
int count = doDataListCount(formDTO.getCustomerId(), agencyId, orgIdPath, formDTO.getPlaceType(), formDTO.getCategoryKey(), null, gridId); |
|
|
|
|
|
orgRes.setTotal(count); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return resultList; |
|
|
return resultList; |
|
|