|
@@ -238,16 +238,14 @@ public class ReportTypeServiceImpl extends ServiceImpl<ReportTypeMapper, ReportT
|
|
|
reportTypes, availableBelongIds);
|
|
|
listItemVOList.addAll(voList);
|
|
|
}
|
|
|
- List<PartitionVO> availableAreas = saasWebService.getAvailableAreas(buildingType.getKey());
|
|
|
- if (!CollectionUtils.isEmpty(availableAreas)) {
|
|
|
- List<String> availableBelongIds = availableAreas.stream().map(
|
|
|
- PartitionVO::getAreaId).collect(Collectors.toList());
|
|
|
+ List<String> availableAreaIds = saasWebService.getAvailableAreaIds(buildingType.getKey());
|
|
|
+ if (!CollectionUtils.isEmpty(availableAreaIds)) {
|
|
|
QueryReportTypeDTO queryReportTypeDTO = new QueryReportTypeDTO();
|
|
|
queryReportTypeDTO.setBelongType(BelongTypeEnum.AREA.getType());
|
|
|
queryReportTypeDTO.setBusinessType(buildingType.getKey());
|
|
|
List<ReportType> reportTypes = queryReportTypeList(queryReportTypeDTO);
|
|
|
List<ResponseReportTypeListItemVO> voList = packageReportTypeListItemVOList(
|
|
|
- reportTypes, availableBelongIds);
|
|
|
+ reportTypes, availableAreaIds);
|
|
|
listItemVOList.addAll(voList);
|
|
|
}
|
|
|
}
|