| | |
| | | package com.dji.sample.media.service.impl; |
| | | |
| | | import com.aliyuncs.utils.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dji.sample.common.model.Pagination; |
| | | import com.dji.sample.common.model.PaginationData; |
| | |
| | | log.error("保存文件到数据库失败,请手动检查数据;Failed to save the file to the database, please check the data manually."); |
| | | return null; |
| | | } |
| | | } else if (!StringUtils.isEmpty(jobId)) { |
| | | WaylineJobDTO waylineJobDTO = new WaylineJobDTO(); |
| | | waylineJobDTO.setWorkspaceId(device.getWorkspaceId()); |
| | | waylineJobDTO.setDockSn(device.getDeviceSn()); |
| | | boolean isSave = parseMediaFile(callback, waylineJobDTO); |
| | | if (!isSave) { |
| | | log.error("保存文件到数据库失败,请手动检查数据;Failed to save the file to the database, please check the data manually."); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | notifyUploadedCount(mediaFileCount, receiver, jobId, device); |