web文件系统,文件上传返回增加一个属性filePath ;//文件在服务端存储相对路径
2个文件已修改
10 ■■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/webCtrls/WebFileCtrl.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileVo.java
@@ -11,6 +11,7 @@
    public Integer hash ;//文件名hash
    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 ;
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) ;