|
|
|
@ -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()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|