From 8d9286db8d1388019ffd326fc17f36f78080b594 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期六, 14 九月 2024 15:46:57 +0800
Subject: [PATCH] export device no

---
 pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 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 99c9b2b..3228be2 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
@@ -25,7 +25,6 @@
 @Slf4j
 @RestController
 @RequestMapping(path="webFile")
-@SuppressWarnings("unchecked")//java鐗堟湰瓒婇珮锛屽娉涘瀷绾︽潫瓒婁弗锛屾墍浠ラ厤缃甋uppressWarnings("unchecked"
 public class WebFileCtrl {
 
     @Autowired
@@ -42,8 +41,8 @@
 
     /**
      * 涓婁紶鐓х墖鍥剧墖鏂囦欢 锛堝綋鍓嶅彧瀵筽ng jpg鏍煎紡鍥剧墖鏀寔缂╃暐鍥撅級
-     * @param file
-     * @return
+     * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+     * @return 杩斿洖缁撴灉
      */
     @PostMapping("/upPhoto")
     @SsoPowerAop(power = "-1") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
@@ -69,7 +68,7 @@
                                 fileNameGrp[1],
                                 (frVo.getFileWebUrl() + frVo.getFileWebPath()),
                                 fileOp.getImgFileZipPath(frVo.getFileWebUrl() + frVo.getFileWebPath()),
-                                frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ;
+                                frVo.fileWebDownloadPath + id) ;
                         return  BaseResponseUtils.buildSuccess(fvo) ;
                     }else {
                         return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�");
@@ -88,8 +87,8 @@
 
     /**
      * 涓婁紶褰曢煶闊抽鏂囦欢
-     * @param file
-     * @return
+     * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+     * @return 杩斿洖缁撴灉
      */
     @PostMapping("/upPhone")
     @SsoPowerAop(power = "-1")
@@ -114,7 +113,7 @@
                                 fileNameGrp[1],
                                 frVo.getFileWebUrl() + frVo.getFileWebPath(),
                                 null,
-                                frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ;
+                                frVo.fileWebDownloadPath + id) ;
                         return  BaseResponseUtils.buildSuccess(fvo) ;
                     }else {
                         return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�");
@@ -134,8 +133,8 @@
 
     /**
      * 涓婁紶褰曞儚瑙嗛鏂囦欢
-     * @param file
-     * @return
+     * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+     * @return 杩斿洖缁撴灉
      */
     @PostMapping("/upVideo")
     @SsoPowerAop(power = "-1")
@@ -160,7 +159,7 @@
                                 fileNameGrp[1],
                                 frVo.getFileWebUrl() + frVo.getFileWebPath(),
                                 null,
-                                frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ;
+                                frVo.fileWebDownloadPath + id) ;
                         return  BaseResponseUtils.buildSuccess(fvo) ;
                     }else {
                         return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�");
@@ -180,8 +179,8 @@
 
     /**
      * 涓婁紶鏂囨。鏂囦欢
-     * @param file
-     * @return
+     * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+     * @return 杩斿洖缁撴灉
      */
     @PostMapping("/upDocument")
     @SsoPowerAop(power = "-1")
@@ -209,7 +208,7 @@
                                 fileNameGrp[0], fileNameGrp[1],
                                 frVo.getFileWebUrl() + frVo.getFileWebPath(),
                                 null,
-                                frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ;
+                                frVo.fileWebDownloadPath + id) ;
                         return  BaseResponseUtils.buildSuccess(fvo) ;
                     }else {
                         return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�");
@@ -234,7 +233,7 @@
      * @param newName 鏂囦欢鏂板悕绉�
      * @param hash  鏂囦欢鏂板悕绉扮殑鍝堝笇鍊�
      * @param filePath 鏂囦欢鏈嶅姟绔瓨鍌ㄧ浉瀵硅矾寰�
-     * @return
+     * @return 鏁版嵁璁板綍涓婚敭
      */
     private Long saveFileInfo(String orgName, String extName, String newName, Integer hash, String filePath){
         OthFile po = new OthFile() ;

--
Gitblit v1.8.0