diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/offline/service/impl/InspectOfflineServiceImpl.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/offline/service/impl/InspectOfflineServiceImpl.java index 99ca727..f9ccdc9 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/offline/service/impl/InspectOfflineServiceImpl.java +++ b/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 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 projects = projectService.getProjectData(tenantId); // 返回数据 - return projects.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); + return projects.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); } /**