zhaowenyu
2025-12-16 eb999e84f6f2d14b1440db9e654fd3c2b2d6b473
ard-admin/src/main/java/com/ard/web/controller/sample/wayline/WaylineJobController.java
@@ -43,15 +43,15 @@
    }
    @ApiOperation("获取航线任务")
    @PostMapping("/flight-id")
    @GetMapping("/flight-id")
    public ResponseResult<WaylineJobDTO> getJob(@RequestParam(name = "job_id") String jobId) {
        try {
            if(jobId == null){
                return ResponseResult.error("任务ID不能为空");
                return ResponseResult.error(98,"任务ID不能为空");
            }
            Optional<WaylineJobDTO> waylineJobDTO = waylineJobService.getJobByJobId(jobId);
            if(waylineJobDTO.isEmpty()) {
                return ResponseResult.error("任务不存在");
                return ResponseResult.error(99,"任务不存在");
            }
            return ResponseResult.success(waylineJobDTO.get());
        } catch (Exception e) {