From fd9df05c48c09b4d7f39a3b401882bda226dedea Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 31 十月 2023 20:38:18 +0800
Subject: [PATCH] 近期修改

---
 force-app/main/default/classes/NFM609FiledDownloadBatch.cls |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/NFM609FiledDownloadBatch.cls b/force-app/main/default/classes/NFM609FiledDownloadBatch.cls
index 0a9062b..2df5fca 100644
--- a/force-app/main/default/classes/NFM609FiledDownloadBatch.cls
+++ b/force-app/main/default/classes/NFM609FiledDownloadBatch.cls
@@ -43,6 +43,7 @@
         }
 
         try{
+            // 20231103 闄堜含姝� Lightning鏂囦欢淇敼 Start
             List < ContentVersion > newAttList = AttachmentFiledDownload(endpoint, parentId, attachmentName);
 
             // if (newAttList.size() > 0) {
@@ -52,6 +53,7 @@
             //     }
             //     insert newAttList;
             // } 
+            // 20231103 闄堜含姝� Lightning鏂囦欢淇敼 End
             if (updateCaseList.size() > 0) {
                 update updateCaseList;
             }
@@ -65,7 +67,7 @@
         }
         // }
     }
-
+// 20231103 闄堜含姝� Lightning鏂囦欢淇敼 Start
     global static List < ContentVersion > AttachmentFiledDownload(String endpoint, String parentId, String attachmentName) {
         List<ContentDocumentLink> linkList = [
             select
@@ -110,12 +112,14 @@
             if (ContentLength < 12582912) {
                 Blob bodyAsBlob = response.getBodyAsBlob();
                 version.VersionData = bodyAsBlob;
+                version.PathOnClient = attachmentName + '.txt';
                 // atta.Body = bodyAsBlob;
                 result.add(version);
             } else {
                 // atta.Name = '鏂囦欢澶у皬瓒呰繃12M,璇峰湪鏂版湇鍔$郴缁熸煡鐪�';
                 // atta.Body = Blob.valueOf('鏂囦欢澶у皬瓒呰繃12M');
                 version.Title = '鏂囦欢澶у皬瓒呰繃12M,璇峰湪鏂版湇鍔$郴缁熸煡鐪�';
+                version.PathOnClient = '鏂囦欢澶у皬瓒呰繃12M,璇峰湪鏂版湇鍔$郴缁熸煡鐪�.txt';
                 version.VersionData = Blob.valueOf('鏂囦欢澶у皬瓒呰繃12M');
                 result.add(version);
             }
@@ -128,7 +132,7 @@
             link.Visibility = 'AllUsers';
             insert link;
         }
-
+// 20231103 闄堜含姝� Lightning鏂囦欢淇敼 End
 
 
         // system.debug('responseBody503--->'+bodyAsBlob);

--
Gitblit v1.9.1