| | |
| | | import com.ruoyi.common.utils.file.FileUploadUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.ruoyi.domain.Archiverecordstouser; |
| | | import com.ruoyi.domain.vo.RecordToUserCount; |
| | | import com.ruoyi.service.IArchiverecordstouserService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:archiverecordstouser:list')") |
| | | @GetMapping("/listArToUser") |
| | | public AjaxResult listAllUserRecord(String userName ) |
| | | { |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | System.out.println(userName); |
| | | return archiverecordstouserService.countStatistic(userName,pageNum, pageSize); |
| | | |
| | | } |
| | | @PreAuthorize("@ss.hasPermi('system:archiverecordstouser:list')") |
| | | @PostMapping("/exportArToUser") |
| | | public void exportArToUser(HttpServletResponse response) |
| | | { |
| | | // archiverecordstouserService.countStatistic() |
| | | List<RecordToUserCount> list = archiverecordstouserService.findAllRecordToUserCont(); |
| | | ExcelUtil<RecordToUserCount> util = new ExcelUtil<RecordToUserCount>(RecordToUserCount.class); |
| | | util.exportExcel(response, list, "导出统计信息"); |
| | | } |
| | | /** |
| | | * 导出【请填写功能名称】列表 |
| | | */ |