guoshilong
2023-10-14 42841034c3da8c5dc15bd3e9400b622675bcc2f4
src/main/java/com/dji/sample/wayline/controller/WaylineJobController.java
@@ -31,7 +31,7 @@
    private IWaylineJobService waylineJobService;
    /**
     * Create a wayline task for the Dock.
     * 创建航路任务。
     * @param request
     * @param param
     * @param workspaceId
@@ -47,8 +47,26 @@
        return waylineJobService.publishFlightTask(param, customClaim);
    }
    /**
     * Paginate through all jobs in this workspace.
     * 创建航路任务(重复定时和连续执行)
     * @param request
     * @param param
     * @param workspaceId
     * @return
     * @throws SQLException
     */
    @PostMapping("/{workspace_id}/flight-tasks-condition")
    public ResponseResult createJobCondition(HttpServletRequest request, @Valid @RequestBody CreateJobParam param,
                                    @PathVariable(name = "workspace_id") String workspaceId) throws SQLException {
        CustomClaim customClaim = (CustomClaim)request.getAttribute(TOKEN_CLAIM);
        customClaim.setWorkspaceId(workspaceId);
        return waylineJobService.publishFlightTaskCondition(param, customClaim);
    }
    /**
     * 分页查询
     * @param page
     * @param pageSize
     * @param workspaceId
@@ -63,7 +81,7 @@
    }
    /**
     * Send the command to cancel the jobs.
     * 发送命令取消作业。
     * @param jobIds
     * @param workspaceId
     * @return
@@ -77,7 +95,7 @@
    }
    /**
     * Set the media files for this job to upload immediately.
     * 将此作业的媒体文件设置为立即上传。
     * @param workspaceId
     * @param jobId
     * @return