| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.awt.*; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | |
| | | @Override |
| | | public Integer saveMediaFile(String workspaceId, FileUploadDTO file) { |
| | | return fileService.saveFile(workspaceId, file); |
| | | } |
| | | public Integer saveMediaMarkFile(String workspaceId, FileUploadDTO file) throws IOException, FontFormatException { |
| | | return fileService.saveMarkFile(workspaceId, file); |
| | | } |
| | | |
| | | @Override |
| | |
| | | log.error("保存文件到数据库失败,请手动检查数据;Failed to save the file to the database, please check the data manually."); |
| | | return null; |
| | | } |
| | | } else if (!StringUtils.isEmpty(jobId)) { //一键起飞操作需要上传文件 |
| | | } else if (!StringUtils.isEmpty(jobId)) { //一键起飞操作需要 |
| | | WaylineJobDTO waylineJobDTO = new WaylineJobDTO(); |
| | | waylineJobDTO.setWorkspaceId(device.getWorkspaceId()); |
| | | waylineJobDTO.setDockSn(device.getDeviceSn()); |