| | |
| | | import com.dji.sample.patches.service.GetPatchesService; |
| | | import com.dji.sample.patches.service.ShpToDataSourceService; |
| | | import com.dji.sample.patches.service.impl.ShpToDataSourceServiceImpl; |
| | | import com.dji.sample.patches.utils.DistrictCodeUtils; |
| | | import com.dji.sample.patches.utils.TimerUtil; |
| | | import com.dji.sample.territory.service.impl.TbDkjbxxServiceImpl; |
| | | import com.dji.sample.wayline.model.entity.WaylineFileEntity; |
| | |
| | | @RequestParam String workspaceId, |
| | | @RequestParam(name = "dkbh", defaultValue = "") String dkbh, |
| | | @RequestParam(name = "isPlan", required = false) Integer isPlan, |
| | | @RequestParam(name = "xzqdm", defaultValue = "") String xzqdm |
| | | @RequestParam(name = "xzqdm", defaultValue = "") String xzqdm, |
| | | @RequestParam(name = "bsm", defaultValue = "") String bsm |
| | | ) { |
| | | //调用service分页查询 |
| | | PatchesParam param = PatchesParam.builder() |
| | |
| | | .dkbh(dkbh) |
| | | .isPlan(isPlan) |
| | | .xzqdm(xzqdm) |
| | | .bsm(bsm) |
| | | .build(); |
| | | PaginationData<LotInfo> data = getPatchesService.limitGet(param); |
| | | return ResponseResult.success(data); |
| | |
| | | return ResponseResult.success(); |
| | | } |
| | | |
| | | @GetMapping("/getXzq") |
| | | public ResponseResult xzq(@RequestParam String code) { |
| | | String xzq = DistrictCodeUtils.nameToCode(code); |
| | | return ResponseResult.success(xzq); |
| | | } |
| | | |
| | | @GetMapping("/useMyTask") |
| | | public ResponseResult useMyTask() throws Exception { |
| | | try { |
| | | // timerUtil.myTask(); |
| | | timerUtil.myTask(); |
| | | timerUtil.myTask2(); |
| | | return ResponseResult.success(); |
| | | } catch (Exception e) { |