From b291d46184e69b11cd9fa045e6d06be084d4203b Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期四, 18 十二月 2025 20:38:36 +0800
Subject: [PATCH] 大屏标语配置,及大屏推送

---
 fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java
index cdbe480..accef06 100644
--- a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java
@@ -178,6 +178,38 @@
     }
 
     /**
+     * 鑾峰彇涓存椂璺緞
+     * @param companyId
+     * @return
+     */
+    public String getTempFilePath(String companyId) {
+
+        String basePath = FrameworkConfig.getProfile() + "TEMP/";
+        if (org.apache.commons.lang3.StringUtils.isNotEmpty(companyId)) {
+            basePath += companyId + "/";
+        }
+        File file = new File(basePath);
+        if (!file.exists()) {
+            file.mkdirs();
+        }
+        return basePath;
+    }
+
+    /**
+     * 鑾峰彇妯℃澘璺緞
+     * @return
+     */
+    public String getConfPath() {
+
+        String basePath = FrameworkConfig.getProfile() + "CONF/";
+        File file = new File(basePath);
+        if (!file.exists()) {
+            file.mkdirs();
+        }
+        return basePath;
+    }
+
+    /**
      * 鍘嬬缉鍥剧墖
      *
      * @param filePath   鍘嬬缉鍓嶈矾寰�
@@ -201,4 +233,23 @@
         ImageIO.write(compressedImage, "jpg", new File(outputPath));
     }
 
+    /**
+     * 鍒ゆ柇璺緞涓嬫枃浠舵槸鍚﹀瓨鍦紝涓嶅瓨鍦ㄥ垯缁欓粯璁�
+     * @param imgPath
+     * @return
+     */
+    public String isImgExit(String imgPath, String tag) {
+        String path = "/img/img-fail.jpg";
+        if(StringUtils.isNotBlank(tag) && "dept".equals(tag)){
+            path = "/img/deptImg.jpg";
+        }
+        if(StringUtils.isNotBlank(imgPath)){
+            File file = new File(imgPath.replace("/profile", FrameworkConfig.getProfile()));
+            if(file.exists()){
+                path = imgPath;
+            }
+        }
+        return path;
+    }
+
 }

--
Gitblit v1.9.3