解决全周期档案中白蚁普查附件不显示问题
parent
187dc7c743
commit
e0f2392106
|
|
@ -208,6 +208,9 @@ public class ProjectEventsService extends ServiceImpl<ProjectEventsMapper, Proje
|
|||
}
|
||||
|
||||
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<FileAssociations> files = fileService.getFilesByIds(ids);
|
||||
Map<String, List<FileAssociations>> map = files.stream().collect(Collectors.groupingBy(FileAssociations::getBusinessId));
|
||||
|
|
|
|||
Loading…
Reference in New Issue