Browse Source

处理小程序图片原图字段

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
eb3fc6c0b0
2 changed files with 1 additions and 4 deletions
  1. +0
    -3
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java
  2. +1
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java

+ 0
- 3
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java View File

@@ -283,9 +283,6 @@ public class InspectionFileServiceImpl implements IInspectionFileService {
return JsonResult.error("未查询出对应的问题及处理结果");
}
//对属性处理
if (StringUtils.isNotEmpty(vo.getFileOriginal())) {
vo.setFileOriginal(CommonConfig.imageURL + vo.getFileOriginal());
}
if (StringUtils.isNotEmpty(vo.getFileImage())) {
vo.setFileImage(CommonConfig.imageURL + vo.getFileImage());
}

+ 1
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java View File

@@ -521,7 +521,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
covert.setFileThumbnail(CommonConfig.imageURL + p.getFileThumbnail());
}
if (StringUtils.isNotEmpty(p.getFileOriginal())) {
covert.setFileOriginal(CommonConfig.imageURL + p.getFileThumbnail());
covert.setFileOriginal(CommonConfig.imageURL + p.getFileOriginal());
}
//任务名称 任务执行时间 道路位置编号
if (StringUtils.isEmpty(p.getInspectionId())) {

Loading…
Cancel
Save