From 2f183a6b0a83ec3f7d35375d5d25d200efc2a3e1 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期二, 19 四月 2022 18:46:18 +0800 Subject: [PATCH] 20220419FixIssue --- 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