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/eSignHospitalConfirmController.cls | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/eSignHospitalConfirmController.cls b/force-app/main/default/classes/eSignHospitalConfirmController.cls
index ca3358a..b3433b2 100644
--- a/force-app/main/default/classes/eSignHospitalConfirmController.cls
+++ b/force-app/main/default/classes/eSignHospitalConfirmController.cls
@@ -206,7 +206,7 @@
public static Id saveTheFile(Id parentId, String fileName, String base64Data, String contentType) {
base64Data = EncodingUtil.urlDecode(base64Data, 'UTF-8');
-
+ // 20231103 Lightning鏂囦欢淇敼 Start
ContentVersion version = new ContentVersion();
version.Title = fileName;
version.VersionData = EncodingUtil.base64Decode(base64Data);
@@ -230,11 +230,12 @@
// insert oAttachment;
return link.ContentDocumentId;
+ // 20231103 Lightning鏂囦欢淇敼 End
}
private static void appendToFile(Id fileId, String base64Data) {
base64Data = EncodingUtil.urlDecode(base64Data, 'UTF-8');
-
+ // 20231103 Lightning鏂囦欢淇敼 Start
// Attachment a = [
// SELECT Id, Body
// FROM Attachment
@@ -249,11 +250,13 @@
version.VersionData = EncodingUtil.base64Decode(existingBody + base64Data);
update version;
+ // 20231103 Lightning鏂囦欢淇敼 End
}
//鏂囦欢鍒犻櫎鍔熻兘 绮剧悽鎶�鏈� thh 2021-09-26 start
@AuraEnabled
public static void deleteChunk(Id AttachmentId) {
+ // 20231103 Lightning鏂囦欢淇敼 Start
// Attachment attachment = new Attachment();
// attachment.id = AttachmentId;
@@ -261,6 +264,7 @@
ContentDocument con = new ContentDocument();
con.Id = AttachmentId;
delete con;
+ // 20231103 Lightning鏂囦欢淇敼 End
}
//鏂囦欢鍒犻櫎鍔熻兘 绮剧悽鎶�鏈� thh 2021-09-26 end
//鑾峰彇AWS淇℃伅 zhj 2023-01-03 start
--
Gitblit v1.9.1