From 9b197b7fac92278fb591ea8f4942c7d5687cb5ce Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 28 三月 2022 18:01:22 +0800
Subject: [PATCH] LJPH-C8FB4P【委托】配合PBI设备覆盖率的数据准备0328
---
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