From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/FileUploadController.cls | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/FileUploadController.cls b/force-app/main/default/classes/FileUploadController.cls
index c1fd78e..440359f 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;
@@ -60,9 +61,20 @@
}
public static List<FileAddress__c> getFileds(String parentId){
+ // SWAG-C9S9P6 2022-05-25 ssm start
+ // 鏂囦欢鍦板潃閲屽鍔犳嫑鏍囬」鐩笓鐢ㄥ瓧娈碉紙淇℃伅Id銆侀」鐩樁娈点�佹洿鏂版棩鏈燂級
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
+ // SWAG-C9S9P6 鏂板瀛楁 start
+ , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c
+ // SWAG-C9S9P6 鏂板瀛楁 end
+ 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
+ // SWAG-C9S9P6 鏂板瀛楁 start
+ , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c
+ // SWAG-C9S9P6 鏂板瀛楁 end
+ FROM FileAddress__c order by createddate desc limit 100];
+ // SWAG-C9S9P6 2022-05-25 ssm end
}
}
\ No newline at end of file
--
Gitblit v1.9.1