Browse Source

修改获取事件实时信息,返回图片地址

develop
wanjing 9 months ago
parent
commit
50cc419a24
1 changed files with 12 additions and 9 deletions
  1. +12
    -9
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/query/QueryAccidentRealtimeInfoListService.java

+ 12
- 9
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/query/QueryAccidentRealtimeInfoListService.java View File

@@ -123,18 +123,21 @@ public class QueryAccidentRealtimeInfoListService {
}
if (AccidentReportTypeEnum.MANUAL.getCode() == accidentVo.getReportType()) {
if (StringUtils.isNotEmpty(accidentVo.getImage())) {
accidentVo.setFileImage(CommonConfig.imageURL + accidentVo.getImage());
accidentVo.setImage(CommonConfig.imageURL + accidentVo.getImage());
}
}
if (ObjectUtil.isNotNull(inspectionFileMap)) {
inspectionFile = inspectionFileMap.get(accidentVo.getInspectionFileId());
if (ObjectUtil.isNotNull(inspectionFile)) {
accidentVo.setFileName(inspectionFile.getFileName());
accidentVo.setFileImage(CommonConfig.imageURL + inspectionFile.getFileImage());
accidentVo.setFileOriginal(CommonConfig.imageURL + inspectionFile.getFileOriginal());
accidentVo.setFileThumbnail(CommonConfig.imageURL + inspectionFile.getFileThumbnail());
} else if (AccidentReportTypeEnum.AUTO.getCode() == accidentVo.getReportType()) {
if (ObjectUtil.isNotNull(inspectionFileMap)) {
inspectionFile = inspectionFileMap.get(accidentVo.getInspectionFileId());
if (ObjectUtil.isNotNull(inspectionFile)) {
accidentVo.setFileName(inspectionFile.getFileName());
accidentVo.setFileImage(CommonConfig.imageURL + inspectionFile.getFileImage());
accidentVo.setFileOriginal(CommonConfig.imageURL + inspectionFile.getFileOriginal());
accidentVo.setFileThumbnail(CommonConfig.imageURL + inspectionFile.getFileThumbnail());
accidentVo.setImage(CommonConfig.imageURL + accidentVo.getFileImage());
}
}
}

if(ObjectUtil.isNotNull(inspectionMap)){
inspection = inspectionMap.get(accidentVo.getInspectionId());
if(ObjectUtil.isNotNull(inspection)){

Loading…
Cancel
Save