|
|
@@ -113,15 +113,10 @@ public class QueryInspectionFilePageListByInspectionIdService { |
|
|
|
Map<String, QuestionType> questionTypeMap = questionTypeList.stream().collect(Collectors.toMap(QuestionType::getId, Function.identity())); |
|
|
|
|
|
|
|
List<InspectionFilePageListByInspectionIdVo> inspectionFilePageListVoList = InspectionFileConverMapper.INSTANCE.fromInspectionFileListToInspectionFilePageByInspectionIdListVoList(inspectionFileList); |
|
|
|
QuestionType questionType; |
|
|
|
Integer questionName; |
|
|
|
for (InspectionFilePageListByInspectionIdVo inspectionFilePageListVo : inspectionFilePageListVoList) { |
|
|
|
questionType = questionTypeMap.get(inspectionFilePageListVo.getQuestionId()); |
|
|
|
if (null != questionType) { |
|
|
|
questionName = questionType.getName(); |
|
|
|
inspectionFilePageListVo.setQuestionName(Integer.toString(questionName)); |
|
|
|
} |
|
|
|
|
|
|
|
inspectionFilePageListVo.setFileThumbnail(CommonConfig.imageURL + inspectionFilePageListVo.getFileThumbnail()); |
|
|
|
inspectionFilePageListVo.setFileOriginal(CommonConfig.imageURL + inspectionFilePageListVo.getFileOriginal()); |
|
|
|
} |
|
|
|
return inspectionFilePageListVoList; |
|
|
|
} |