| | |
| | | int count=getPatchesService.delPatches(workspaceId); |
| | | return ResponseResult.success("删除的图斑数量是"+count); |
| | | } |
| | | |
| | | @DeleteMapping("/deleteOne") |
| | | public ResponseResult deleteOne(int id){ |
| | | int count= getPatchesService.deleteOne(id); |
| | |
| | | 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 { |
| | |
| | | @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 { |
| | |
| | | // } |
| | | // 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); |
| | | } |
| | | |
| | | /** |
| | | * 根据图斑的地块编号获取相对应音视频 |