Merge branch 'dev_20230829_change' into 'master'
Dev 20230829 change See merge request laws-foton-slrs/foton-slrs-system-rest!127
This commit is contained in:
@@ -54,7 +54,12 @@ public class AttFileEOServiceImpl extends ServiceImpl<AttFileEODao, AttFileEO> i
|
|||||||
attFileEO = this.getFileInfo(attId);
|
attFileEO = this.getFileInfo(attId);
|
||||||
//2020年10月25日 此处补充文件的下载地址
|
//2020年10月25日 此处补充文件的下载地址
|
||||||
StringBuffer downloadFileUrl = new StringBuffer();
|
StringBuffer downloadFileUrl = new StringBuffer();
|
||||||
downloadFileUrl.append(downloadUrl).append(attFileEO.getFilePath()).append(attFileEO.getFileName());
|
// 去除downloadURL末尾的 ’/‘
|
||||||
|
String url = downloadUrl;
|
||||||
|
if (url.endsWith("/")) {
|
||||||
|
url = url.substring(0, url.length() - 1);
|
||||||
|
}
|
||||||
|
downloadFileUrl.append(url).append(attFileEO.getFilePath()).append(attFileEO.getFileName());
|
||||||
attFileEO.setDownLoadUrl(downloadFileUrl.toString());
|
attFileEO.setDownLoadUrl(downloadFileUrl.toString());
|
||||||
}else{
|
}else{
|
||||||
String fileId = UUIDUtils.randomUUID20();
|
String fileId = UUIDUtils.randomUUID20();
|
||||||
|
|||||||
Reference in New Issue
Block a user