解决全周期档案中白蚁普查附件不显示问题

master
wany 2024-09-30 11:12:26 +08:00
parent 187dc7c743
commit e0f2392106
1 changed files with 3 additions and 0 deletions

View File

@ -208,6 +208,9 @@ public class ProjectEventsService extends ServiceImpl<ProjectEventsMapper, Proje
} }
private void fillFile(List<ProjectEventsVo> list) { private void fillFile(List<ProjectEventsVo> list) {
if(CollectionUtils.isEmpty(list)){
return;
}
List<String> ids = list.stream().map(ProjectEventsVo::getId).map(Objects::toString).collect(Collectors.toList()); List<String> ids = list.stream().map(ProjectEventsVo::getId).map(Objects::toString).collect(Collectors.toList());
List<FileAssociations> files = fileService.getFilesByIds(ids); List<FileAssociations> files = fileService.getFilesByIds(ids);
Map<String, List<FileAssociations>> map = files.stream().collect(Collectors.groupingBy(FileAssociations::getBusinessId)); Map<String, List<FileAssociations>> map = files.stream().collect(Collectors.groupingBy(FileAssociations::getBusinessId));