|
|
@ -2011,10 +2011,15 @@ public class DataStatsServiceImpl implements DataStatsService, ResultDataResolve |
|
|
|
} |
|
|
|
|
|
|
|
//2.查询组织信息,判断查询下级组织还是网格数据
|
|
|
|
ScreenAgencyOrGridListDTO agencyGrid = indexService.getSubAgencyOrGridList(formDTO.getAgencyId(), formDTO.isExport()); |
|
|
|
//2022.8.17 屏蔽查询组织、网格逻辑,直接以org库的组织网格为准
|
|
|
|
ScreenAgencyOrGridListDTO agencyGrid = govOrgService.getSubAgencyOrGridList(formDTO.getCustomerId(), formDTO.getAgencyId(), formDTO.isExport()); |
|
|
|
if (null == agencyGrid) { |
|
|
|
return new CustomerDataManageResultDTO(); |
|
|
|
} |
|
|
|
/*ScreenAgencyOrGridListDTO agencyGrid = indexService.getSubAgencyOrGridList(formDTO.getAgencyId(), formDTO.isExport()); |
|
|
|
if (null == agencyGrid) { |
|
|
|
return new CustomerDataManageResultDTO(); |
|
|
|
}*/ |
|
|
|
//组织或网格Id集合
|
|
|
|
List<String> idList = agencyGrid.getAgencyGridList().stream().map(ScreenAgencyOrGridListDTO.AgencyGrid::getOrgId).collect(Collectors.toList()); |
|
|
|
formDTO.setDataType(!OrgLevelEnum.COMMUNITY.getCode().equals(agencyGrid.getLevel()) ? OrgTypeEnum.AGENCY.getCode() : OrgTypeEnum.GRID.getCode()); |
|
|
@ -2329,7 +2334,7 @@ public class DataStatsServiceImpl implements DataStatsService, ResultDataResolve |
|
|
|
} |
|
|
|
|
|
|
|
//2.查询组织信息,判断要查询下级是组织还是网格数据
|
|
|
|
ScreenAgencyOrGridListDTO agencyGrid = govOrgService.getSubAgencyOrGridList(formDTO.getCustomerId(), formDTO.getAgencyId()); |
|
|
|
ScreenAgencyOrGridListDTO agencyGrid = govOrgService.getSubAgencyOrGridList(formDTO.getCustomerId(), formDTO.getAgencyId(), false); |
|
|
|
if (null == agencyGrid) { |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|