| | |
| | | return toAjax(ardDroneInfoService.deleteArdDroneByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 批量新增无人机盒子 |
| | | */ |
| | | @ApiOperation("批量新增无人机盒子") |
| | | @PreAuthorize("@ss.hasPermi('work:drone:insertArdDroneLs')") |
| | | @Log(title = "无人机管理", businessType = BusinessType.DELETE) |
| | | @PostMapping("insertArdDroneLs/{boxSn}/{deptId}/{serverId}") |
| | | public AjaxResult insertArdDroneLs(@PathVariable String[] boxSn, |
| | | @PathVariable Long deptId, |
| | | @PathVariable String serverId) { |
| | | try { |
| | | int result = ardDroneInfoService.insertArdDroneLs(boxSn,deptId,serverId); |
| | | if (result > 0) { |
| | | return AjaxResult.success("成功新增 " + result + " 个无人机盒子"); |
| | | } else { |
| | | return AjaxResult.success("没有需要新增的无人机盒子"); |
| | | } |
| | | } catch (Exception e) { |
| | | return AjaxResult.error(e.getMessage()); |
| | | } |
| | | } |
| | | } |