| | |
| | | @PreAuthorize("@ss.hasPermi('system:records:export')") |
| | | @Log(title = "档案记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArchiveRecords archiveRecords) |
| | | public void export(HttpServletResponse response, ArchiveRecords archiveRecords, @RequestParam(value = "ids", required = false) Long[] ids) |
| | | { |
| | | List<ArchiveRecords> list = archiveRecordsService.selectArchiveRecordsList(archiveRecords); |
| | | List<ArchiveRecords> list; |
| | | System.out.println(ids); |
| | | // 如果提供了ids参数,则根据ids导出指定记录 |
| | | if (ids != null && ids.length > 0) { |
| | | list = archiveRecordsService.selectArchiveRecordsByIds(ids); |
| | | } else { |
| | | // 否则根据查询条件导出 |
| | | list = archiveRecordsService.selectArchiveRecordsList(archiveRecords); |
| | | } |
| | | ExcelUtil<ArchiveRecords> util = new ExcelUtil<ArchiveRecords>(ArchiveRecords.class); |
| | | //util.showColumn(); |
| | | util.exportExcel(response, list, "档案记录数据"); |
| | | // response.getB |
| | | // response. |
| | | } |
| | | |
| | | /** |
| | |
| | | if(selectedSignatures!=null){ |
| | | for(int si: selectedSignatures) |
| | | { |
| | | arrLis.add(sig[si-1]); |
| | | arrLis.add(sig[si]); |
| | | } |
| | | } |
| | | //注选择 |
| | |
| | | List<String> arrAn = new ArrayList<>(); |
| | | if(selectedAnnotations!=null) { |
| | | for (int ar : selectedAnnotations) { |
| | | arrAn.add(ann[ar - 1]); |
| | | arrAn.add(ann[ar]); |
| | | } |
| | | } |
| | | List<DocumentMaterialsFileList> arsi = new ArrayList<>(); |