From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新

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

diff --git a/force-app/main/default/classes/PIHelper.cls b/force-app/main/default/classes/PIHelper.cls
index 340ec54..69fac60 100644
--- a/force-app/main/default/classes/PIHelper.cls
+++ b/force-app/main/default/classes/PIHelper.cls
@@ -108,9 +108,9 @@
             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.Request__c = content;
+            // traLog.Response__c = respMsg;
             traLog.Interface_URL__c = traLog.Module__c;
             insert traLog;
         }catch(Exception e){
@@ -147,7 +147,7 @@
         PIIntegration piIntegration = new PIIntegration();
         //鏌ヨ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_Report_URL__c,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,Sobject_Name__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);
 
@@ -222,12 +222,14 @@
         piIntegration.transactionURL = config.TransactionURL__c;
         piIntegration.hostUrl = awsConfiguration.Host_URL__c;
         piIntegration.searchUrl = config.Full_Search_URL__c;
+        piIntegration.reportUrl = (String.isEmpty(config.Full_Report_URL__c)||String.isBlank(config.Full_Report_URL__c))?'':config.Full_Report_URL__c;//Add By Li Jun for report function 20220509
         piIntegration.token = token;
         piIntegration.awsAppId = awsAppId;
         piIntegration.awsAppSecret = awsAppSecret;
         piIntegration.vLookUpFields = vLookUpFields;
         piIntegration.PIFields = PIFields;
         piIntegration.sobjectPrefix = getObjectKeyPrefix(sobjectType);
+        piIntegration.awsTableName = config.Sobject_Name__c;
         System.debug('piIntegration' + piIntegration);
         return piIntegration;
     }
@@ -248,9 +250,11 @@
         public String awsAppId{set;get;}
         public String awsAppSecret{set;get;}
         public String transactionUrl{set;get;}
+        public String reportUrl{set;get;}//Add By Li Jun for report function 20220509
         public List<String> vLookUpFields{set;get;}
         public List<String> PIFields{set;get;}
         public List<PI_Field_Policy_Detail__c > PIDetails{set;get;}
+        public String awsTableName{set;get;}
     }
     global class TransRequestBody{
         public Integer isSuccess{set;get;}

--
Gitblit v1.9.1