rain
2024-06-20 3904fbdccb96a9b1b4f919d18505d5ebb8ef976a
src/main/java/com/dji/sample/patches/controller/PatchesController.java
@@ -91,6 +91,7 @@
        int count=getPatchesService.delPatches(workspaceId);
        return ResponseResult.success("删除的图斑数量是"+count);
    }
    @DeleteMapping("/deleteOne")
    public ResponseResult deleteOne(int id){
        int count= getPatchesService.deleteOne(id);
@@ -105,10 +106,12 @@
        String xzq = DistrictCodeUtils.nameToCode(code);
        return ResponseResult.success(xzq);
    }
    @GetMapping("/getInfoById")
    public ResponseResult<LotInfo> wayAndPatchesId(@RequestParam String patchesId) {
        return ResponseResult.success(getPatchesService.getPatchesFromId(patchesId));
    }
    @GetMapping("/getWayline")
    public ResponseResult getWayline(@RequestParam String waylineName, @RequestBody List<LotInfo> list){
        try {
@@ -144,15 +147,17 @@
    @GetMapping("/useMyTask")
    public ResponseResult useMyTask() throws Exception {
        try {
            timerUtil.myTask();
//            timerUtil.myTask();
//            timerUtil.myTask2();
//            timerUtil.myTask3();
            timerUtil.mytask4();
        } catch (Exception e) {
            throw new RuntimeException("db存储发送出现异常"+e);
        }
        return ResponseResult.success();
    }
//    @GetMapping ("/tests")
//    public ResponseResult use()  {
//        try {
@@ -163,6 +168,13 @@
//        }
//        return ResponseResult.success();
//    }
    @PostMapping("/way")
    public void getway(@RequestParam("file") MultipartFile file,
                       @RequestParam String workspaceId,
                       @RequestParam String waylineName,
                       @RequestParam String username) {
        waylineFileService.importKmzFileBack(file, workspaceId, username);
    }
    /**
     * 根据图斑的地块编号获取相对应音视频