Bladeren bron

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

develop
wanjing 9 maanden geleden
bovenliggende
commit
50cc419a24
1 gewijzigde bestanden met toevoegingen van 12 en 9 verwijderingen
  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 Bestand weergeven

@@ -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)){

Laden…
Annuleren
Opslaan