From 542a030a93de7dbc39e185d4ce355c5894e3cd5b Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 22 七月 2025 13:45:06 +0800
Subject: [PATCH] 解决切面日志插入失败

---
 se-system/src/main/java/com/terra/system/service/show/CadService.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/service/show/CadService.java b/se-system/src/main/java/com/terra/system/service/show/CadService.java
index eb7d4b5..23db41c 100644
--- a/se-system/src/main/java/com/terra/system/service/show/CadService.java
+++ b/se-system/src/main/java/com/terra/system/service/show/CadService.java
@@ -4,14 +4,13 @@
 import com.terra.system.entity.data.MetaEntity;
 import com.terra.system.entity.sys.AttachEntity;
 import com.terra.system.helper.PathHelper;
-import com.terra.system.helper.StringHelper;
+import com.terra.common.helper.StringHelper;
 import com.terra.system.service.data.MetaService;
 import com.terra.system.service.sys.AttachService;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
-import org.springframework.util.StringUtils;
 
 import javax.annotation.Resource;
 import java.io.*;
@@ -74,7 +73,7 @@
     private String getFilePath(int id, Boolean isAttach) {
         if (null == isAttach || !isAttach) {
             MetaEntity me = metaService.selectById(id);
-            if (null == me || StringUtils.isEmpty(me.getPath()) || !StaticData.DWG.equals(me.getType())) {
+            if (null == me || StringHelper.isEmpty(me.getPath()) || !StaticData.DWG.equals(me.getType())) {
                 return null;
             }
 
@@ -82,7 +81,7 @@
         }
 
         AttachEntity ae = attachService.selectById(id);
-        if (null == ae || StringUtils.isEmpty(ae.getPath()) || !ae.getPath().toLowerCase().contains(StaticData.DWG)) {
+        if (null == ae || StringHelper.isEmpty(ae.getPath()) || !ae.getPath().toLowerCase().contains(StaticData.DWG)) {
             return null;
         }
 

--
Gitblit v1.9.3