| | |
| | | @PreAuthorize("hasAuthority('system:operationRecord:list')") |
| | | @PostMapping("/operationRecord/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(operationRecordService.list(), OperationRecord.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<OperationRecord, BaseParam> pageParam = new PageParam<>(baseParam, OperationRecord.class); |
| | | List<OperationRecord> data = operationRecordService.list(pageParam.buildWrapper(true)); |
| | | |
| | | ExcelUtil.build(ExcelUtil.create(data, OperationRecord.class), response); |
| | | } |
| | | |
| | | } |