Browse Source

#bug修改

zhongwei
yang_shj 2 years ago
parent
commit
a606638bc4
  1. 6
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/offline/service/impl/InspectOfflineServiceImpl.java

6
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/offline/service/impl/InspectOfflineServiceImpl.java

@ -203,8 +203,6 @@ public class InspectOfflineServiceImpl implements IOfflineDataService {
}
// FIXME 下载至 response
this.downloadZip(response,zipFile);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
@ -631,7 +629,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService {
// 查询巡检对象
List<ObjectOfflineVO> objects = objectService.getReDbjectData(tenantId);
// 返回数据
return objects.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList());
return objects.stream().map(this::convertFileOrVideo).collect(Collectors.toList());
}
/**
@ -646,7 +644,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService {
// 查询巡检项目
List<ProjectOfflineVO> projects = projectService.getProjectData(tenantId);
// 返回数据
return projects.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList());
return projects.stream().map(this::convertFileOrVideo).collect(Collectors.toList());
}
/**

Loading…
Cancel
Save