| | |
| | | |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.oss.model.MinioUploadResult; |
| | | import com.ard.route.domain.dto.ArdNoflyDto; |
| | | import com.ard.route.domain.route.ArdRouteInfo; |
| | | import com.ard.route.service.IArdRouteInfoService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | */ |
| | | @ApiOperation("修改航线分组ID") |
| | | @Log(title = "航线(kmz)", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/updateGroupId/{id}/{GroupId}") |
| | | @PutMapping("/updateGroupId/{id}/{groupId}") |
| | | public AjaxResult updateGroupId(@PathVariable("id") String id, |
| | | @PathVariable("GroupId") String GroupId) { |
| | | return toAjax(ardRouteInfoService.updateRouteInfomationGroupId(id,GroupId)); |
| | | @PathVariable("groupId") String groupId) { |
| | | return toAjax(ardRouteInfoService.updateRouteInfomationGroupId(id,groupId)); |
| | | } |
| | | |
| | | /** |
| | | * 判断行点是否在禁飞区 |
| | | */ |
| | | @ApiOperation("判断行点是否在禁飞区") |
| | | @GetMapping("/noFly/{longitude}/{latitude}") |
| | | public Boolean noFly(@PathVariable("longitude") Double longitude, |
| | | @PathVariable("latitude") Double latitude) { |
| | | return ardRouteInfoService.selectRouteInfomationNoFly(longitude,latitude); |
| | | @PostMapping("/noFly") |
| | | public Boolean noFly(@RequestBody ArdNoflyDto ardNoflyDto) { |
| | | return ardRouteInfoService.selectRouteInfomationNoFly(ardNoflyDto); |
| | | } |
| | | |
| | | /** |
| | | * 上传航线到边缘服务器 |
| | | */ |
| | | // @ApiOperation("上传航线到边缘服务器") |
| | | // @PostMapping |
| | | // public AjaxResult uploadRouteInformation(@RequestBody ArdRouteInfor ArdRouteInfor) { |
| | | // return success(ardRouteInfoService.selectArdRouteInforByName(ArdRouteInfor.getName())); |
| | | // } |
| | | @ApiOperation("上传航线到边缘服务器") |
| | | @PostMapping("/uploadRouteToSixHe/{id}/{boxSn}") |
| | | public AjaxResult uploadRouteToSixHe(@PathVariable("id") String id, |
| | | @PathVariable("boxSn") String boxSn) { |
| | | return success(ardRouteInfoService.uploadRouteToSixHe(id,boxSn)); |
| | | } |
| | | |
| | | /** |
| | | * 开始航线 |
| | | */ |
| | | @ApiOperation("开始航线") |
| | | @PostMapping("/routeBegins/{id}/{boxSn}") |
| | | public AjaxResult routeBegins(@PathVariable("id") String id, |
| | | @PathVariable("boxSn") String boxSn) { |
| | | ardRouteInfoService.routeBegins(id,boxSn); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 暂停航线 |
| | | */ |
| | | @ApiOperation("暂停航线") |
| | | @PostMapping("/routeSuspension/{boxSn}") |
| | | public AjaxResult routeSuspension(@PathVariable("boxSn") String boxSn) { |
| | | ardRouteInfoService.routeSuspension(boxSn); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 恢复航线 |
| | | */ |
| | | @ApiOperation("恢复航线") |
| | | @PostMapping("/routeResumption/{boxSn}") |
| | | public AjaxResult routeResumption(@PathVariable("boxSn") String boxSn) { |
| | | ardRouteInfoService.routeResumption(boxSn); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 结束航线 |
| | | */ |
| | | @ApiOperation("结束航线") |
| | | @PostMapping("/routeEnd/{boxSn}") |
| | | public AjaxResult routeEnd(@PathVariable("boxSn") String boxSn) { |
| | | ardRouteInfoService.routeEnd(boxSn); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | } |