| | |
| | | import com.dji.sample.patches.service.GetPatchesService; |
| | | import com.dji.sample.patches.service.ShpToDataSourceService; |
| | | import com.dji.sample.patches.utils.DistrictCodeUtils; |
| | | import com.dji.sample.patches.utils.GeoToolsUtil; |
| | | import com.dji.sample.patches.utils.PointPO; |
| | | import com.dji.sample.patches.utils.TimerUtil; |
| | | import com.dji.sample.territory.service.impl.TbDkjbxxServiceImpl; |
| | | import com.dji.sample.wayline.model.entity.WaylineFileEntity; |
| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getPoint") |
| | | public List<PointPO> getPoint(@RequestParam List<Integer> list, |
| | | @RequestParam Double airportLat, |
| | | @RequestParam Double airportLon) { |
| | | List<LotInfo> lotInfos = getPatchesService.getLotInfosByIds(list); |
| | | System.out.println(lotInfos); |
| | | System.out.println(lotInfos); |
| | | System.out.println(lotInfos); |
| | | System.out.println(lotInfos); |
| | | System.out.println(lotInfos); |
| | | System.out.println(lotInfos); |
| | | return GeoToolsUtil.getRoutePointOrder(lotInfos, airportLat, airportLon); |
| | | } |
| | | |
| | | @PostMapping("/patchesToWayline") |
| | | public ResponseResult patchesToWayline(@RequestBody List<LotInfo> lotInfos, |
| | |
| | | @GetMapping("/useMyTask") |
| | | public ResponseResult useMyTask() throws Exception { |
| | | try { |
| | | // timerUtil.myTask(); |
| | | timerUtil.myTask(); |
| | | // timerUtil.myTask2(); |
| | | // timerUtil.myTask3(); |
| | | timerUtil.mytask4(); |
| | | timerUtil.mytask5(); |
| | | timerUtil.mytask6(); |
| | | timerUtil.mytask7(); |
| | | // timerUtil.mytask4(); |
| | | // timerUtil.mytask5(); |
| | | // timerUtil.mytask6(); |
| | | // timerUtil.mytask7(); |
| | | |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("db存储发送出现异常" + e); |
| | |
| | | executor.shutdown(); |
| | | return ResponseResult.success(); |
| | | } |
| | | |
| | | @PostMapping("/way") |
| | | public void getway(@RequestParam("file") MultipartFile file, |
| | | @RequestParam String workspaceId, |