From 1727a4f4d02e429475608e60f142a63bc24127bc Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 23 十月 2023 10:07:34 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/classes/UpdateReceivingNoteImgRest.cls | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/UpdateReceivingNoteImgRest.cls b/force-app/main/default/classes/UpdateReceivingNoteImgRest.cls
index 14b0eea..37162fd 100644
--- a/force-app/main/default/classes/UpdateReceivingNoteImgRest.cls
+++ b/force-app/main/default/classes/UpdateReceivingNoteImgRest.cls
@@ -4,13 +4,19 @@
global static void doPost(String docId, String rnId, String libId) {
RestResponse res = RestContext.response;
res.addHeader('Content-Type', 'application/json');
-
+ StaticParameter.ContentDocumentTrigger = false;
+ StaticParameter.ContentDocumentLink = false;
+ StaticParameter.ContentVerisonTrigger = false;
ContentDocumentLink cdl1 = new ContentDocumentLink();
cdl1.Visibility='AllUsers';
cdl1.ShareType='I';
cdl1.ContentDocumentId = docId;
cdl1.LinkedEntityId = rnId;
+ // cdl1.LinkedEntityId = libId;
+ // libId = null;
+ System.debug('zheli03'+libId);
+ // libId = null;
ContentDocumentLink cdl2 = new ContentDocumentLink();
if (String.isNotBlank(libId)) {
cdl2.Visibility='AllUsers';
@@ -18,11 +24,12 @@
cdl2.ContentDocumentId = docId;
cdl2.LinkedEntityId = libId;
}
-
try {
if (String.isNotBlank(libId)) {
+ System.debug('zheli00');
insert new ContentDocumentLink[] {cdl1, cdl2};
} else {
+ System.debug('zheli01');
insert cdl1;
}
} catch ( Exception ex ) {
--
Gitblit v1.9.1