Browse Source

fix:视频巡检取消异常抛出,记录对应记录

zhongwei
luyie 2 months ago
parent
commit
bd2b81643f
  1. 1
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java

1
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/schedule/VideoTaskSchedule.java

@ -260,6 +260,7 @@ public class VideoTaskSchedule {
} catch (IOException e) {
log.error("获取截图文件失败", e);
record.setCurrentValue("获取截图文件失败");
return;
}
R<BladeFile> fileResponse = ossClient.putFileByNameAndTenantId("file", multipartFile, task.getTenantId());
log.info("【taskId:{}}】视频巡检任务执行,上传minio结果,{}", task.getId(), Optional.ofNullable(fileResponse).map(JsonUtil::toJson).orElse("null"));

Loading…
Cancel
Save