From 99755eea33cf009c36507df468c244f3be5b34c9 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 28 二月 2025 17:27:31 +0800 Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-after into dev_cr --- inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsReportServiceImpl.java | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsReportServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsReportServiceImpl.java index 742af90..7d61ac8 100644 --- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsReportServiceImpl.java +++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsReportServiceImpl.java @@ -36,6 +36,7 @@ import com.ruoyi.inspect.mapper.InsUnqualifiedHandlerMapper; import com.ruoyi.system.mapper.UserMapper; import com.ruoyi.system.service.InformationNotificationService; +import lombok.extern.slf4j.Slf4j; import org.apache.poi.xwpf.usermodel.*; import org.springframework.beans.factory.annotation.Value; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; @@ -65,6 +66,7 @@ * @createDate 2024-03-17 22:10:02 */ @Service +@Slf4j public class InsReportServiceImpl extends ServiceImpl<InsReportMapper, InsReport> implements InsReportService { @Resource @@ -540,7 +542,6 @@ // 娓呯悊涓存椂鏂囦欢澶� deleteDirectory(tempFolder); - System.out.println("ZIP鏂囦欢鍒涘缓瀹屾垚锛�"); } catch (IOException e) { e.printStackTrace(); } @@ -675,13 +676,11 @@ FileOutputStream os = null; try { //鍑瘉 涓嶇劧鍒囨崲鍚庢湁姘村嵃 -// InputStream is = this.getClass().getResourceAsStream("/lib/license.xml"); -// InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("license.xml"); InputStream is = Files.newInputStream(new File(licenseUrl).toPath()); License license = new License(); license.setLicense(is); if (!license.getIsLicensed()) { - System.out.println("License楠岃瘉涓嶉�氳繃..."); + log.info("License楠岃瘉涓嶉�氳繃..."); return null; } //鐢熸垚涓�涓┖鐨凱DF鏂囦欢 @@ -1120,7 +1119,7 @@ License license = new License(); license.setLicense(is); if (!license.getIsLicensed()) { - System.out.println("License楠岃瘉涓嶉�氳繃..."); + log.info("License楠岃瘉涓嶉�氳繃..."); return null; } //鐢熸垚涓�涓┖鐨凱DF鏂囦欢 @@ -1131,7 +1130,6 @@ //瑕佽浆鎹㈢殑word鏂囦欢 com.aspose.words.Document doc = new com.aspose.words.Document(wordPath); doc.save(os, SaveFormat.PDF); - String name = file.getName(); return file.getName(); } catch (Exception e) { e.printStackTrace(); -- Gitblit v1.9.3