From 784f9cec56eef3c7ac0ba02de98fdbf341c6a7b3 Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期一, 25 四月 2022 18:38:29 +0800
Subject: [PATCH] 0428IssueFix
---
force-app/main/default/classes/PIHelper.cls | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/force-app/main/default/classes/PIHelper.cls b/force-app/main/default/classes/PIHelper.cls
index f4bb2b0..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涓烘暟鎹�
@@ -144,6 +148,7 @@
//鏌ヨurl
System.debug('thhsobjectType = ' + sobjectType);
PI_Policy_Configuration__c config = [SELECT Full_New_URL__c,Full_New_Encrypt_URL__c,Full_Update_Encrypt_URL__c,Full_Search_URL__c,Full_Update_URL__c,Full_Undelete_URL__c,Full_Read_URL__c,Full_Delete_URL__c,Full_View_Unified_Contact_URL__c,TransactionURL__c FROM PI_Policy_Configuration__c WHERE Sobject_Type__c =:sobjectType];
+ // PI_Policy_Configuration__c config = [SELECT Full_New_URL__c,Full_Search_URL__c,Full_Update_URL__c,Full_Undelete_URL__c,Full_Read_URL__c,Full_Delete_URL__c,Full_View_Unified_Contact_URL__c,TransactionURL__c,Full_New_Encrypt_URL__c FROM PI_Policy_Configuration__c WHERE Sobject_Type__c =:sobjectType];
System.debug('thhconfig = ' + config);
//鑾峰彇appid鍜宎ppsecret
--
Gitblit v1.9.1