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