|
@@ -51,6 +51,7 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
|
List<Long> ids = data.stream()
|
|
|
.map(artist -> artist.getId())
|
|
|
.collect(Collectors.toList());
|
|
|
+ Map<Long,ModuleInfo> moduleInfoMap = list.stream().collect(Collectors.toMap(ModuleInfo::getId,moduleInfo -> moduleInfo));
|
|
|
Map<Long, List<ModuleDetail>> moduleDetailMap = new LinkedHashMap<>();
|
|
|
if (ListUtil.isNotEmpty(ids)) {
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
@@ -75,6 +76,9 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
|
QuestionDTO questionDTO = questionFacade.getById(questionVO);
|
|
|
BeanUtil.copyProperties(questionDTO, detailDTO);
|
|
|
}
|
|
|
+ if(null != detailDTO.getRelationModule()){
|
|
|
+ detailDTO.setRelationModuleName(moduleInfoMap.get(detailDTO.getRelationModule()).getName());
|
|
|
+ }
|
|
|
}
|
|
|
bean.setModuleDetailDTOList(moduleDetailDTOList);
|
|
|
}
|