From 7c5e1ef7db84731610d5616b2ee7e6e63abd886d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 01 八月 2025 13:21:02 +0800
Subject: [PATCH] mqtt回调方法调整
---
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java | 31 +------------------------------
1 files changed, 1 insertions(+), 30 deletions(-)
diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java b/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
index 3aa6f7b..28986ff 100644
--- a/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
+++ b/cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
@@ -36,7 +36,7 @@
* 鏈嶅姟瀹炵幇绫�
* </p>
*
- * @author 鑺杞欢锛堟睙鑻忥級鏈夐檺鍏徃
+ * @author
* @since 2024-11-08 11:08:11
*/
@Service
@@ -95,33 +95,4 @@
saveBatch(list);
}
- public String wordToPdf(String wordPath, String pdfPath) {
- FileOutputStream os = null;
- try {
- InputStream is = new ClassPathResource("/lib/license.xml").getInputStream();
- License license = new License();
- license.setLicense(is);
- if (!license.getIsLicensed()) {
- System.out.println("License楠岃瘉涓嶉�氳繃...");
- return null;
- }
- //鐢熸垚涓�涓┖鐨凱DF鏂囦欢
- File file = new File(pdfPath.replace(".pdf", ".pdf"));
- os = new FileOutputStream(file);
- //瑕佽浆鎹㈢殑word鏂囦欢
- com.aspose.words.Document doc = new com.aspose.words.Document(wordPath);
- doc.save(os, SaveFormat.PDF);
- } catch (Exception e) {
- e.printStackTrace();
- } finally {
- if (os != null) {
- try {
- os.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
- return null;
- }
}
--
Gitblit v1.9.3