| | |
| | | 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.TimerUtil; |
| | | import com.dji.sample.territory.service.impl.TbDkjbxxServiceImpl; |
| | | import com.dji.sample.wayline.model.entity.WaylineFileEntity; |
| | | import com.dji.sample.wayline.service.IWaylineFileService; |
| | |
| | | private IWaylineFileService waylineFileService; |
| | | @Autowired |
| | | private TbDkjbxxServiceImpl tbDkjbxxService; |
| | | @Autowired |
| | | private TimerUtil timerUtil; |
| | | |
| | | /** |
| | | * 根据workspaceId获取图斑列表信息 |
| | |
| | | public ResponseResult del() { |
| | | getPatchesService.delPatches(); |
| | | return ResponseResult.success(); |
| | | } |
| | | |
| | | @GetMapping("/useMyTask") |
| | | public ResponseResult useMyTask() throws Exception { |
| | | try { |
| | | // timerUtil.myTask(); |
| | | timerUtil.myTask2(); |
| | | return ResponseResult.success(); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("db存储发送出现异常"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | return ResponseResult.success(infoMap); |
| | | } |
| | | @PostMapping("/test") |
| | | public void test(){ |
| | | List<LotInfo> list=getPatchesService.listLotinfo(); |
| | | tbDkjbxxService.insert(list); |
| | | } |
| | | } |