| | |
| | | @ApiOperation(value = "导出excel表模板") |
| | | public void importTemplate(HttpServletResponse response) { |
| | | //原来的下载模板调用接口 |
| | | String base64String = PDFBinaryUtil.getPDFBinary(configService.selectConfigByKey("default_excelTemplate")); |
| | | try { |
| | | String base64String = PDFBinaryUtil.getPDFBinary(value + File.separator + "西安路泰机电科技有限公司.xls"); |
| | | if (null != base64String) { |
| | | PDFBinaryUtil.base64StringToPDF(base64String, FileUtil.mkdir(value).getPath() + File.separator + "团体预约Excel模版.xls"); |
| | | String filePath = value + File.separator + "团体预约Excel模版.xls"; |
| | |
| | | } |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | ExcelUtils.exportTemplate(response,"团体预约Excel模版",TjReservation.class); |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | |