From ff435968945d457f9ee653a9620fa1c7d78d2d4c Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期五, 06 五月 2022 18:17:54 +0800
Subject: [PATCH] MceConfigPDFController 修改

---
 force-app/main/default/classes/PIHelper.cls |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/force-app/main/default/classes/PIHelper.cls b/force-app/main/default/classes/PIHelper.cls
index 85faefd..340ec54 100644
--- a/force-app/main/default/classes/PIHelper.cls
+++ b/force-app/main/default/classes/PIHelper.cls
@@ -102,16 +102,20 @@
      }
     // Use this log method
     public static void saveTransLog(String module,String awsDataId,String sfId, String transId,String content,String status,String respMsg){
-        Transaction_Log__c traLog = new Transaction_Log__c();
-        traLog.AWS_Data_Id__c = awsDataId;
-        traLog.SFRecordId__c = sfId;
-        traLog.Module__c = 'Upsert SF ' + module;
-        traLog.TransId__c = transId;
-        traLog.Request__c = content;
-        traLog.Status__c = status;
-        traLog.Response__c = respMsg;
-        traLog.Interface_URL__c = traLog.Module__c;
-        insert traLog;
+        try{
+            Transaction_Log__c traLog = new Transaction_Log__c();
+            traLog.AWS_Data_Id__c = awsDataId;
+            traLog.SFRecordId__c = sfId;
+            traLog.Module__c = 'Upsert SF ' + module;
+            traLog.TransId__c = transId;
+            traLog.Request__c = content;
+            traLog.Status__c = status;
+            traLog.Response__c = respMsg;
+            traLog.Interface_URL__c = traLog.Module__c;
+            insert traLog;
+        }catch(Exception e){
+            system.debug('Exception from insert log:'+e.getMessage());
+        }
     }
     //save qianlima log method add sushanhu 20220324
     // model 0 涓烘枃浠� 1涓烘暟鎹�

--
Gitblit v1.9.1