|
|
@ -435,7 +435,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
eq(ContentEntity::getTenantId, tenantId); |
|
|
|
eq(ContentEntity::getTenantId, tenantId); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return contents.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return contents.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -452,7 +452,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
eq(ObjectDangerEntity::getTenantId, tenantId); |
|
|
|
eq(ObjectDangerEntity::getTenantId, tenantId); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return dangers.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return dangers.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -471,7 +471,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
eq(OfflineTaskEntity::getId, taskId); |
|
|
|
eq(OfflineTaskEntity::getId, taskId); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return tasks.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return tasks.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -487,7 +487,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
List<TaskUserEntity> taskUsers = this.taskUserService.getOfflineTaskUser(taskIds); |
|
|
|
List<TaskUserEntity> taskUsers = this.taskUserService.getOfflineTaskUser(taskIds); |
|
|
|
|
|
|
|
|
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return taskUsers.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return taskUsers.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -501,7 +501,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
// 查询巡检任务
|
|
|
|
// 查询巡检任务
|
|
|
|
List<TaskOfflineVO> tasks = taskService.getTaskData(taskId,currentDate); |
|
|
|
List<TaskOfflineVO> tasks = taskService.getTaskData(taskId,currentDate); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return tasks.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return tasks.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -515,7 +515,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
} |
|
|
|
} |
|
|
|
List<PlanOfflineVO> tasks = planService.getPlans(planIds); |
|
|
|
List<PlanOfflineVO> tasks = planService.getPlans(planIds); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return tasks.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return tasks.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -532,7 +532,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
List<EventEntity> events = eventService.list(new LambdaQueryWrapper<EventEntity>() {{ |
|
|
|
List<EventEntity> events = eventService.list(new LambdaQueryWrapper<EventEntity>() {{ |
|
|
|
in(EventEntity::getTaskId, taskIds); |
|
|
|
in(EventEntity::getTaskId, taskIds); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
return events.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return events.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -548,7 +548,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
List<EventAttachmentEntity> eventAttachments = eventAttachmentService.list(new LambdaQueryWrapper<EventAttachmentEntity>() {{ |
|
|
|
List<EventAttachmentEntity> eventAttachments = eventAttachmentService.list(new LambdaQueryWrapper<EventAttachmentEntity>() {{ |
|
|
|
in(EventAttachmentEntity::getEventId, eventIds); |
|
|
|
in(EventAttachmentEntity::getEventId, eventIds); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
return eventAttachments.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return eventAttachments.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -564,7 +564,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
in(EventRecordEntity::getEventId, eventIds); |
|
|
|
in(EventRecordEntity::getEventId, eventIds); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return eventRecords.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return eventRecords.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -579,7 +579,7 @@ public class InspectOfflineServiceImpl implements IOfflineDataService { |
|
|
|
// 查询巡检任务对象
|
|
|
|
// 查询巡检任务对象
|
|
|
|
List<TaskObjectOfflineVO> taskObjects = taskObjectService.getExObjectData(taskIds); |
|
|
|
List<TaskObjectOfflineVO> taskObjects = taskObjectService.getExObjectData(taskIds); |
|
|
|
// 返回数据
|
|
|
|
// 返回数据
|
|
|
|
return taskObjects.stream().map(item -> this.convertFileOrVideo(item)).collect(Collectors.toList()); |
|
|
|
return taskObjects.stream().map(this::convertFileOrVideo).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|