| | |
| | | @RequestParam(name = "xzqdm", required = false) String xzqdm, |
| | | @RequestParam(name = "bsm", required = false) String bsm, |
| | | @RequestParam(name = "xmc", required = false) String xmc, |
| | | @RequestParam(name = "investigate", required = false) Integer investigate |
| | | ) { |
| | | @RequestParam(name = "investigate", required = false) Integer investigate, |
| | | @RequestParam(name = "dkmj", required = false) Double dkmj, |
| | | @RequestParam(name = "isPlan",required = false) Integer isPlan |
| | | ) { |
| | | fileService.getNoaddFile(); |
| | | //调用service分页查询 |
| | | PatchesParam param = PatchesParam.builder() |
| | |
| | | .bsm(bsm) |
| | | .xmc(xmc) |
| | | .investigate(investigate) |
| | | .dkmj(dkmj) |
| | | .isPlan(isPlan) |
| | | .build(); |
| | | PaginationData<LotInfo> data = getPatchesService.limitGet(param); |
| | | return ResponseResult.success(data); |
| | |
| | | @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, |
| | | @RequestParam String waylineName, |
| | | @RequestParam String spotInFreckle, |
| | | @RequestParam String workspaceId, |
| | | @RequestParam String patchesId, |
| | | @RequestParam(required = false) String patchesId, |
| | | @RequestParam double lat, |
| | | @RequestParam double lon, |
| | | @RequestParam(defaultValue = "1", required = false) String isTemp, |
| | | HttpServletRequest request) throws IOException { |
| | | CustomClaim customClaim = (CustomClaim) request.getAttribute(TOKEN_CLAIM); |
| | | String creator = customClaim.getUsername(); |
| | | MultipartFile file = timerUtil.getFile(waylineName, lotInfos, lat, lon); |
| | | waylineFileService.importKmzFile(file, workspaceId, creator, patchesId, spotInFreckle); |
| | | waylineFileService.importKmzFile(file, workspaceId, creator, patchesId, isTemp); |
| | | WaylineFileEntity entity = waylineFileService.selectByName(waylineName); |
| | | Map<String, String> infoMap = new HashMap<>(); |
| | | URL url = null; |
| | |
| | | @GetMapping("/useMyTask") |
| | | public ResponseResult useMyTask() throws Exception { |
| | | try { |
| | | timerUtil.myTask(); |
| | | // TimerUtil.mytask10(); |
| | | // timerUtil.myTask2(); |
| | | // timerUtil.myTask3(); |
| | | // timerUtil.mytask4(); |
| | |
| | | @RequestParam double airportLat, |
| | | @RequestParam double airportLon, |
| | | HttpServletRequest request) throws Exception { |
| | | MultipartFile multipartFile = shpToDataSourceService.insertGeo(file, workspaceId, waylineName, airportLat, airportLon); |
| | | CustomClaim customClaim = (CustomClaim) request.getAttribute(TOKEN_CLAIM); |
| | | String creator = customClaim.getUsername(); |
| | | MultipartFile multipartFile = shpToDataSourceService.insertGeo(file, workspaceId, waylineName, airportLat, airportLon, creator); |
| | | waylineFileService.importKmzFileBack(multipartFile, workspaceId, creator); |
| | | WaylineFileEntity entity = waylineFileService.selectByName(waylineName); |
| | | Map<String, String> infoMap = new HashMap<>(); |