rain
2024-06-24 1fc2b9a38ce7fb5f0a78361a731e98750fbd20c1
src/main/java/com/dji/sample/wayline/controller/WaylineJobController.java
@@ -77,6 +77,18 @@
    }
    /**
     * 断点任务
     * @return
     */
    @PostMapping("/{workspace_id}/breakpoint-tasks")
    @SysLogAnnotation(operModul = "计划库", operType = "断点续飞", operDesc = "创建航路任务(重复定时和连续执行)")
    public ResponseResult breakPointJob(HttpServletRequest request, @Valid @RequestBody BreakPointJobParam param,
                                        @PathVariable(name = "workspace_id") String workspaceId) throws SQLException {
        Optional<WaylineJobDTO> waylineJobDTO = waylineJobService.getJobByJobId(workspaceId, param.getJobId(),param.isBreakPoint());
        return waylineJobService.publishOneFlightTask(waylineJobDTO.get());
    }
    /**
     * 分页查询
     *
     * @param page
@@ -182,6 +194,10 @@
        return ResponseResult.success(waylineJobCountDTO);
    }
    @GetMapping("/idToName")
    public ResponseResult findName(@RequestParam String jobid) {
        return ResponseResult.success(waylineJobService.getName(jobid));
    }
    /**
     * 收藏媒体库