From 9cb1f5cf9cc383d8f09b0735e75ee7a0ef181804 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期六, 19 十月 2024 11:11:00 +0800
Subject: [PATCH] 优化代码,修改注解信息

---
 pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileSv.java |    2 --
 pms-parent/pms-global/src/main/resources/application-global.yml                  |    2 +-
 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java     |    7 ++++---
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java
index 3228be2..def09e9 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java
@@ -20,7 +20,7 @@
 import java.util.Date;
 
 /**
- * web鏂囦欢涓婁紶绀轰緥
+ * web鏂囦欢涓婁紶
  */
 @Slf4j
 @RestController
@@ -35,7 +35,8 @@
 
     @Value("${dy.webFile.fmUrl}")
     private String fmUrl ;
-    //鏀寔鐨勬枃浠剁被鍨�
+
+    //鏀寔鐨勬枃妗f枃浠剁被鍨�
     @Value("${dy.webFile.supportedFileTypes}")
     private String supportedFileTypes ;
 
@@ -46,7 +47,7 @@
      */
     @PostMapping("/upPhoto")
     @SsoPowerAop(power = "-1") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
-    //https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0
+    //鍙傝�冿細 https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0
     public BaseResponse<?> upPhoto(MultipartFile file) {
         try {
             if (file != null) {
diff --git a/pms-parent/pms-global/src/main/resources/application-global.yml b/pms-parent/pms-global/src/main/resources/application-global.yml
index ab631cb..ea9cdc9 100644
--- a/pms-parent/pms-global/src/main/resources/application-global.yml
+++ b/pms-parent/pms-global/src/main/resources/application-global.yml
@@ -116,7 +116,7 @@
     photoZipWidth: 400 #缂╃暐鍥惧昂瀵�
     webFile:
         fmUrl: http://127.0.0.1:${pms.other.webPort}/other # fm鐨剋eb涓婁笅鏂� URL
-        supportedFileTypes: docx,xlsx,pdf
+        supportedFileTypes: docx,xlsx,doc,xls,pdf #鏀寔鐨勬枃妗o紙闈炲獟浣撴枃浠讹紝濡傜収鐗囥�佸綍闊炽�佸綍鍍忥級鏂囦欢绫诲瀷
         sv1:
             id: dyFile1
             absolutePath: E:/java/nginx-1.24.0/html/webfiles/
diff --git a/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileSv.java b/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileSv.java
index a19981e..1b5b427 100644
--- a/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileSv.java
+++ b/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileSv.java
@@ -2,12 +2,10 @@
 
 
 import com.dy.common.util.NumUtil;
-import com.dy.pmsGlobal.daoBa.BaUserMapper;
 import com.dy.pmsGlobal.daoOth.OthFileMapper;
 import com.dy.pmsGlobal.pojoOth.OthFile;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
 @Slf4j

--
Gitblit v1.8.0