|
|
@@ -94,17 +94,24 @@ public class QueryInspectionFileHandleByInspectionFileIdService { |
|
|
|
* 处理字段 |
|
|
|
*/ |
|
|
|
private InspectionFileHandleVo buildInspectionFileHandleVo(InspectionFile inspectionFile, InspectionFileHandle inspectionFileHandle) { |
|
|
|
InspectionFileHandleVo inspectionFileHandleVo = InspectionFileHandleConverMapper.INSTANCE.fromInspectionFileHandleToInspectionFileHandleVo(inspectionFileHandle); |
|
|
|
InspectionFileHandleVo inspectionFileHandleVo; |
|
|
|
List<String> handlerImageList = null; |
|
|
|
if (!StringUtils.isEmpty(inspectionFileHandle.getHandlerImage())) { |
|
|
|
handlerImageList = new ArrayList<>(); |
|
|
|
String[] arr = inspectionFileHandle.getHandlerImage().split(","); |
|
|
|
List<String> list = Arrays.stream(arr).map(String::toString).collect(Collectors.toList()); |
|
|
|
for (String str : list) { |
|
|
|
handlerImageList.add(CommonConfig.imageURL + str); |
|
|
|
} |
|
|
|
if (null != inspectionFileHandle) { |
|
|
|
inspectionFileHandleVo = InspectionFileHandleConverMapper.INSTANCE.fromInspectionFileHandleToInspectionFileHandleVo(inspectionFileHandle); |
|
|
|
|
|
|
|
if (!StringUtils.isEmpty(inspectionFileHandle.getHandlerImage())) { |
|
|
|
handlerImageList = new ArrayList<>(); |
|
|
|
String[] arr = inspectionFileHandle.getHandlerImage().split(","); |
|
|
|
List<String> list = Arrays.stream(arr).map(String::toString).collect(Collectors.toList()); |
|
|
|
for (String str : list) { |
|
|
|
handlerImageList.add(CommonConfig.imageURL + str); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
inspectionFileHandleVo = new InspectionFileHandleVo(); |
|
|
|
} |
|
|
|
|
|
|
|
QuestionType questionType = questionTypeMapper.selectOne(new LambdaQueryWrapper<QuestionType>() |
|
|
|
.eq(QuestionType::getId, inspectionFile.getQuestionId()) |
|
|
|
.eq(QuestionType::getMark, 1)); |