From b7d83328c1d4cf65f0dc9ec7c17e957afc7e3c76 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 13 一月 2025 17:07:33 +0800
Subject: [PATCH] web文件系统,文件上传返回增加一个属性filePath ;//文件在服务端存储相对路径
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/webCtrls/WebFileCtrl.java | 7 ++++++-
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java | 3 +++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java
index 5c916a2..b51375e 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java
@@ -11,6 +11,7 @@
public Integer hash ;//鏂囦欢鍚峢ash
public String orgName ;//鏂囦欢鍘熷悕
public String extName ;//鏂囦欢鎵╁睍鍚�
+ public String filePath ;//鏂囦欢鍦ㄦ湇鍔$瀛樺偍鐩稿璺緞
public String webPath ;//web鏂囦欢璁块棶璺緞
public String webPathZip;//鐓х墖鏂囦欢缂╃暐鍥捐闂矾寰勶紝鍏朵粬绫诲瀷鏂囦欢姝ゅ睘鎬т负null
public String downloadPath;//web鏂囦欢涓嬭浇璺緞锛屽簲鐢ㄦ椂璺緞鍚庨潰鍔犱笂 ?id=[id]
@@ -21,6 +22,7 @@
Integer hash,
String orgName,
String extName,
+ String filePath,
String webPath,
String webPathZip,
String downloadPath){
@@ -28,6 +30,7 @@
this.hash = hash ;
this.orgName = orgName ;
this.extName = extName ;
+ this.filePath = filePath ;
this.webPath = webPath ;
this.webPathZip = webPathZip ;
this.downloadPath = downloadPath ;
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/webCtrls/WebFileCtrl.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/webCtrls/WebFileCtrl.java
index 36c3aba..44f8956 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/webCtrls/WebFileCtrl.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/webCtrls/WebFileCtrl.java
@@ -66,6 +66,7 @@
frVo.fileNameHash,
fileNameGrp[0],
fileNameGrp[1],
+ frVo.getFileWebPath(),
(frVo.getFileWebUrl() + frVo.getFileWebPath()),
fileOp.getImgFileZipPath(frVo.getFileWebUrl() + frVo.getFileWebPath()),
frVo.fileWebDownloadPath + id) ;
@@ -110,6 +111,7 @@
frVo.fileNameHash,
fileNameGrp[0],
fileNameGrp[1],
+ frVo.getFileWebPath(),
frVo.getFileWebUrl() + frVo.getFileWebPath(),
null,
frVo.fileWebDownloadPath + id) ;
@@ -155,6 +157,7 @@
frVo.fileNameHash,
fileNameGrp[0],
fileNameGrp[1],
+ frVo.getFileWebPath(),
frVo.getFileWebUrl() + frVo.getFileWebPath(),
fileOp.getVideoFileZipPath(frVo.getFileWebUrl() + frVo.getFileWebPath(), VideoZipPicFileType),
frVo.fileWebDownloadPath + id) ;
@@ -202,7 +205,9 @@
Long id = this.saveFileInfo(fileNameGrp[0], fileNameGrp[1], fileMainName, frVo.fileNameHash, frVo.fileWebPath);
FileVo fvo = new FileVo(id,
frVo.fileNameHash,
- fileNameGrp[0], fileNameGrp[1],
+ fileNameGrp[0],
+ fileNameGrp[1],
+ frVo.getFileWebPath(),
frVo.getFileWebUrl() + frVo.getFileWebPath(),
null,
frVo.fileWebDownloadPath + id) ;
--
Gitblit v1.8.0