src/main/java/com/dji/sample/media/service/impl/FileServiceImpl.java
@@ -182,6 +182,12 @@
        if (jobName != null && !jobName.isEmpty()) {
            List<String> jobIds = waylineJobService.getJobIds(jobName);
            // 检查 jobIds 列表是否为空
            if (jobIds.isEmpty()) {
                // 如果为空,则直接返回空的分页数据
                return new PaginationData<>(Collections.emptyList(), new Pagination(pageObj));
            }
                queryWrapper.in(MediaFileEntity::getJobId, jobIds);
        }
        if (type != null && !type.isEmpty()) {
@@ -191,7 +197,7 @@
                queryWrapper.likeLeft(MediaFileEntity::getFileName, ".mp4");
            }
        }
        queryWrapper.orderByDesc(MediaFileEntity::getCreateTime);
        queryWrapper.last("ORDER BY JSON_EXTRACT(metadata, '$.createdTime') DESC");
        // 执行分页查询
        Page<MediaFileEntity> resultPage = mapper.selectPage(pageObj, queryWrapper);
@@ -428,6 +434,7 @@
                            .bucket(bucketName)
                            .object(objectName)
                            .stream(fileInputStream, file.length(), -1)
                            .contentType("image/jpeg")
                            .build()
            );
            fileInputStream.close();