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