From f127c76b19f5316032d4bed127a1dde710c48d74 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期四, 24 三月 2022 10:10:36 +0800 Subject: [PATCH] PIPLFunctionFixBug0324 --- force-app/main/default/classes/FileUploadController.cls | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/FileUploadController.cls b/force-app/main/default/classes/FileUploadController.cls index c1fd78e..cfd13a7 100644 --- a/force-app/main/default/classes/FileUploadController.cls +++ b/force-app/main/default/classes/FileUploadController.cls @@ -24,7 +24,6 @@ FileAddress__c file = new FileAddress__c(); PIHelper.PIIntegration pI=PIHelper.getPIIntegrationInfo('Document'); 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 +60,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