| | |
| | | */ |
| | | @PostMapping("/{workspace_id}/waylines/file/upload") |
| | | @SysLogAnnotation(operModul = "航线库", operType = "上传", operDesc = "上传kmz航线文件") |
| | | public ResponseResult importKmzFile(@PathVariable(name = "workspace_id") String workspaceId,HttpServletRequest request, MultipartFile file) { |
| | | public ResponseResult importKmzFile(@PathVariable(name = "workspace_id") String workspaceId, |
| | | HttpServletRequest request, MultipartFile file, |
| | | @RequestParam String patchesId) { |
| | | if (Objects.isNull(file)) { |
| | | return ResponseResult.error("未上传文件"); |
| | | } |
| | | CustomClaim customClaim = (CustomClaim)request.getAttribute(TOKEN_CLAIM); |
| | | String creator = customClaim.getUsername(); |
| | | waylineFileService.importKmzFile(file, workspaceId, creator); |
| | | waylineFileService.importKmzFile(file, workspaceId, creator,patchesId); |
| | | return ResponseResult.success(); |
| | | } |
| | | |