|  |  | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.dao.admin.response.DeviceEventDTO; | 
 |  |  | import com.doumee.dao.business.model.DeviceEvent; | 
 |  |  | import com.doumee.dao.system.vo.DeviceEventVo; | 
 |  |  | import com.doumee.service.business.DeviceEventService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("导出Excel") | 
 |  |  |     @PostMapping("/exportExcel") | 
 |  |  |     @RequiresPermissions("business:deviceevent:exportExcel") | 
 |  |  |     //@RequiresPermissions("business:deviceevent:exportExcel") | 
 |  |  |     public void exportExcel (@RequestBody PageWrap<DeviceEvent> pageWrap, HttpServletResponse response) { | 
 |  |  |         ExcelExporter.build(DeviceEvent.class).export(deviceEventService.findPage(pageWrap).getRecords(), "门禁事件推送记录表", response); | 
 |  |  |         ExcelExporter.build(DeviceEventVo.class).export(deviceEventService.findDeviceEventExcel(pageWrap), "门禁事件推送记录表", response); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据ID查询") |