From 31cde7475c41aa9dbcc6d282ca3d92a07bd37bef Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 05 八月 2024 20:16:03 +0800
Subject: [PATCH] 优化代码
---
pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileCtrl.java | 2 --
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java | 19 +++++++++----------
2 files changed, 9 insertions(+), 12 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..6392086 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") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
@@ -88,8 +87,8 @@
/**
* 涓婁紶褰曢煶闊抽鏂囦欢
- * @param file
- * @return
+ * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+ * @return 杩斿洖缁撴灉
*/
@PostMapping("/upPhone")
@SsoPowerAop(power = "-1")
@@ -134,8 +133,8 @@
/**
* 涓婁紶褰曞儚瑙嗛鏂囦欢
- * @param file
- * @return
+ * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+ * @return 杩斿洖缁撴灉
*/
@PostMapping("/upVideo")
@SsoPowerAop(power = "-1")
@@ -180,8 +179,8 @@
/**
* 涓婁紶鏂囨。鏂囦欢
- * @param file
- * @return
+ * @param file web绔笂浼犳枃浠剁殑post瀵硅薄
+ * @return 杩斿洖缁撴灉
*/
@PostMapping("/upDocument")
@SsoPowerAop(power = "-1")
@@ -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() ;
diff --git a/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileCtrl.java b/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileCtrl.java
index f858373..6d7e02a 100644
--- a/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileCtrl.java
+++ b/pms-parent/pms-web-file/src/main/java/com/dy/dyFile/download/DownloadFileCtrl.java
@@ -1,6 +1,5 @@
package com.dy.dyFile.download;
-import cn.hutool.http.server.HttpServerResponse;
import com.dy.pmsGlobal.dyFile.FileOperate;
import com.dy.pmsGlobal.dyFile.FileRestVo;
import com.dy.pmsGlobal.pojoOth.OthFile;
@@ -11,7 +10,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
--
Gitblit v1.8.0