|  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据ID删除") | 
 |  |  |     @GetMapping("/delete/{id}") | 
 |  |  |     @RequiresPermissions("business:devicerole:delete") | 
 |  |  |     //@RequiresPermissions("business:devicerole:delete") | 
 |  |  |     public ApiResponse deleteById(@PathVariable Integer id) { | 
 |  |  |         deviceRoleService.deleteById(id); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("批量删除") | 
 |  |  |     @GetMapping("/delete/batch") | 
 |  |  |     @RequiresPermissions("business:devicerole:delete") | 
 |  |  |     //@RequiresPermissions("business:devicerole:delete") | 
 |  |  |     public ApiResponse deleteByIdInBatch(@RequestParam String ids) { | 
 |  |  |         String [] idArray = ids.split(","); | 
 |  |  |         List<Integer> idList = new ArrayList<>(); | 
 |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("导出Excel") | 
 |  |  |     @PostMapping("/exportExcel") | 
 |  |  |     @RequiresPermissions("business:devicerole:exportExcel") | 
 |  |  |     //@RequiresPermissions("business:devicerole:exportExcel") | 
 |  |  |     public void exportExcel (@RequestBody PageWrap<DeviceRole> pageWrap, HttpServletResponse response) { | 
 |  |  |         ExcelExporter.build(DeviceRole.class).export(deviceRoleService.findPage(pageWrap).getRecords(), "门禁角色信息表", response); | 
 |  |  |     } |