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 |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/FileUploadController.cls b/force-app/main/default/classes/FileUploadController.cls
index cfd13a7..440359f 100644
--- a/force-app/main/default/classes/FileUploadController.cls
+++ b/force-app/main/default/classes/FileUploadController.cls
@@ -23,6 +23,8 @@
     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.FileName__c =fileName;
         file.ViewLink__c =pI.queryUrl+key;
@@ -59,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,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,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