已修改1个文件
7 ■■■■ 文件已修改
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceEthicalreviewopinionsController.java
@@ -213,16 +213,19 @@
        }
        if(filePath.substring(0,1).equals("/"))
            filePath=filePath.substring(1);
        filePath = RuoYiConfig.getProfile()+"\\template\\";
        String content ="";
        Template t = null;
        try {
            //content = Files.readString(Paths.get(filePath+"遗体器官获取伦理审查表首页.xml"), StandardCharsets.UTF_8);
            Path path = Paths.get(filePath1 + "遗体器官获取伦理审查表首页.xml");
            Path path = Paths.get(filePath + "遗体器官获取伦理审查表首页.xml");
            logger.info(filePath + "遗体器官获取伦理审查表首页.xml ;"+Files.exists(path));
            if(Files.exists(path)) {
                byte[] bytes = Files.readAllBytes(path);
                content = new String(bytes, StandardCharsets.UTF_8);
            }else{
                path = Paths.get(filePath + "遗体器官获取伦理审查表首页.xml");
                logger.info(filePath1 + "遗体器官获取伦理审查表首页.xml ;"+Files.exists(path));
                path = Paths.get(filePath1 + "遗体器官获取伦理审查表首页.xml");
                byte[] bytes = Files.readAllBytes(path);
                content = new String(bytes, StandardCharsets.UTF_8);
            }