diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/importdownload/ImportDownloadController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/importdownload/ImportDownloadController.java index 84c5aa67..e6c2388c 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/importdownload/ImportDownloadController.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/importdownload/ImportDownloadController.java @@ -65,13 +65,13 @@ public class ImportDownloadController { break; case Constants.PATIENT_INFO_IMPORT: // 门诊患者 //本地服务 - file = ResourceUtils.getFile("classpath:template/OutpatientFollowUpRecords.xlsx"); + //file = ResourceUtils.getFile("classpath:template/OutpatientFollowUpRecords.xlsx"); //线上服务 -// Resource resource = new ClassPathResource("classpath:template/OutpatientFollowUpRecords.xlsx"); -// String filePath= this.getClass().getClassLoader().getResource("classpath:template/OutpatientFollowUpRecords.xlsx").getFile(); -// file= new File(filePath); -// // 通过流讲文件复制到file中 -// FileUtils.copyToFile(resource.getInputStream(), file); + Resource resource = new ClassPathResource("classpath:template/OutpatientFollowUpRecords.xlsx"); + String filePath= this.getClass().getClassLoader().getResource("classpath:template/OutpatientFollowUpRecords.xlsx").getFile(); + file= new File(filePath); + // 通过流讲文件复制到file中 + FileUtils.copyToFile(resource.getInputStream(), file); break; } if (Objects.isNull(file)) {