|
|
@ -249,8 +249,8 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
Set<String> answerResourceIds = medicalRecQaList.stream().map(MedicalRecQaVO::getAnswerResourceId).filter(StrUtil::isNotEmpty).collect(Collectors.toSet());
|
|
|
|
Set<String> answerResourceIds = medicalRecQaList.stream().map(MedicalRecQaVO::getAnswerResourceId).filter(StrUtil::isNotEmpty).collect(Collectors.toSet());
|
|
|
|
Map<String, String> videoInfoMaps = new HashMap<>();
|
|
|
|
Map<String, String> videoInfoMaps = new HashMap<>();
|
|
|
|
if (CollUtil.isNotEmpty(answerResourceIds)){
|
|
|
|
if (CollUtil.isNotEmpty(answerResourceIds)){
|
|
|
|
Map<String, String> videoInfoMapsTmp = materialLibraryService.listByIds(answerResourceIds).stream()
|
|
|
|
Map<String, String> videoInfoMapsTmp = materialLibraryService.lambdaQuery().in(MaterialLibrary::getFileResourceId, answerResourceIds)
|
|
|
|
.collect(Collectors.toMap(MaterialLibrary::getId, MaterialLibrary::getMaterialName));
|
|
|
|
.list().stream().collect(Collectors.toMap(MaterialLibrary::getId, MaterialLibrary::getMaterialName));
|
|
|
|
videoInfoMaps.putAll(videoInfoMapsTmp);
|
|
|
|
videoInfoMaps.putAll(videoInfoMapsTmp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|