| | |
| | | String dateStr = DateUtil.formatDate(currentDate); |
| | | boolean result = PoiExportExcel.exportCommonExcel(response, fileName + dateStr, fileName, allList); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出身份证到期员工") |
| | | @PostMapping(value = "export/sfz") |
| | | @ControllerEndpoint(operation = "导出身份证到期员工", exceptionMessage = "导出Excel失败") |
| | | public void exportIdNumberWithField(QueryRequest request, HttpServletResponse response, String exportField, EmpBaseInfo empBaseinfo) throws IOException { |
| | | request.setPageSize(25535); |
| | | request.setPageNum(1); |
| | | String index = empBaseinfo.getTimeRange().toString(); |
| | | List<EmpBaseInfo> exportList = this.empBaseInfoService.baseInfoList(index,null,null,"25535","1","11",null).getRecords(); |
| | | List<Map<String, Object>> allList = PoiExportExcel.getDataList(exportField, exportList, null); |
| | | String fileName = "身份证到期员工列表"; |
| | | Date currentDate = new Date(); |
| | | String dateStr = DateUtil.formatDate(currentDate); |
| | | boolean result = PoiExportExcel.exportCommonExcel(response, fileName + dateStr, fileName, allList); |
| | | } |
| | | } |