From 8badb57ea2c82557850ad5b39281c3e8714eb119 Mon Sep 17 00:00:00 2001
From: liuyan <liuyan@prec-tech.com>
Date: 星期四, 24 十一月 2022 10:08:31 +0800
Subject: [PATCH] 科室信息漏传SPO问题
---
force-app/main/default/classes/FileUploadController.cls | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/FileUploadController.cls b/force-app/main/default/classes/FileUploadController.cls
index c1fd78e..13cb178 100644
--- a/force-app/main/default/classes/FileUploadController.cls
+++ b/force-app/main/default/classes/FileUploadController.cls
@@ -23,8 +23,9 @@
global static Response saveFile(String fileName,String key,String transId,String parentId){
FileAddress__c file = new FileAddress__c();
PIHelper.PIIntegration pI=PIHelper.getPIIntegrationInfo('Document');
+ // 鍘婚櫎filename閲屽緱鈥�&鈥� bysushanhu 20220414
+ fileName = fileName.remove('&');
file.DownloadLink__c =pI.undeleteUrl+key+'&fileName='+fileName;
- file.DownloadLink2__c =pI.undeleteUrl+key+'&fileName='+fileName;
file.FileName__c =fileName;
file.ViewLink__c =pI.queryUrl+key;
file.ParentRecordId__c =parentId;
@@ -61,8 +62,8 @@
public static List<FileAddress__c> getFileds(String parentId){
if(String.isNotBlank(parentId)){
- return [SELECT Id,ParentRecordId__c, FileName__c,DownloadLink__c,DownloadLink2__c,FileAddress__c.ViewLink__c FROM FileAddress__c where ParentRecordId__c=:parentId order by createddate desc];
+ return [SELECT Id,ParentRecordId__c, FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c FROM FileAddress__c where ParentRecordId__c=:parentId order by createddate desc];
}
- return [SELECT Id, ParentRecordId__c,FileName__c,DownloadLink__c,DownloadLink2__c,FileAddress__c.ViewLink__c FROM FileAddress__c order by createddate desc limit 100];
+ return [SELECT Id, ParentRecordId__c,FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c FROM FileAddress__c order by createddate desc limit 100];
}
}
\ No newline at end of file
--
Gitblit v1.9.1