| | |
| | | List<TSysAppUserExport> sysAppUserExports = sysAppUserService.exportListAppUser(query); |
| | | for (TSysAppUserExport sysAppUserExport : sysAppUserExports) { |
| | | String lastInspectionTime = sysAppUserExport.getLastInspectionTime(); |
| | | lastInspectionTime = new SimpleDateFormat("yyyy-MM-dd HH:mm").format(lastInspectionTime); |
| | | sysAppUserExport.setLastInspectionTime(lastInspectionTime); |
| | | if(StringUtils.isNotEmpty(lastInspectionTime)){ |
| | | lastInspectionTime = new SimpleDateFormat("yyyy-MM-dd HH:mm").format(lastInspectionTime); |
| | | sysAppUserExport.setLastInspectionTime(lastInspectionTime); |
| | | } |
| | | sysAppUserExport.setCreateTimeStr(sysAppUserExport.getCreateTime().toLocalDate().toString()); |
| | | } |
| | | Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(), TSysAppUserClinicExport.class, sysAppUserExports); |
| | | Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(), TSysAppUserExport.class, sysAppUserExports); |
| | | HttpServletResponse response = WebUtils.response(); |
| | | assert response != null; |
| | | response.setContentType("application/vnd.ms-excel"); |