From 01f207d979d6be17c8cdec293feab48828c0ec3e Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期五, 08 四月 2022 14:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG

---
 force-app/main/default/classes/NewConsumApplyController.cls |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/NewConsumApplyController.cls b/force-app/main/default/classes/NewConsumApplyController.cls
index a50680e..fab3059 100644
--- a/force-app/main/default/classes/NewConsumApplyController.cls
+++ b/force-app/main/default/classes/NewConsumApplyController.cls
@@ -24,7 +24,11 @@
     public String contactsInfo {set;get;}
     public String contactId{set;get;}
     public String PIPL_Input_Account_Error_Msg{set;get;}
+    public final string ApiPrefix{get;private set;} //Add By Li Jun 20220403
+    public Map<string,string> AWSToSobjectEncryptedMap{get;private set;}
+    public string AWSToSobjectEncryptedMapJson{get{return JSON.serialize(AWSToSobjectEncryptedMap);}}
     public NewConsumApplyController(ApexPages.StandardController controller) {
+        ApiPrefix = 'PIBackApi';  
         isNewMode = true;
         Input_Required_Field_Msg = Label.Input_Required_Field_Msg;
         PIPL_Input_Account_Error_Msg = label.PIPL_Input_Account_Error_Msg;
@@ -68,9 +72,14 @@
         Map<String,String> fieldAPIToLabelMap = LayoutWrapperValue.fieldAPIToLabelMap;
         requiredFieldAPIListStr = JSON.serialize(requiredFieldAPIList);
         fieldAPIToLabelMapStr = JSON.serialize(fieldAPIToLabelMap);
-        staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Consum_Apply__c'));
-        encryptedAPIList = PIHelper.getPIIntegrationInfo('Consum_Apply__c').PIFields;
+        PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Consum_Apply__c');
+        staticResource = JSON.serialize(piIntegration);
+        encryptedAPIList = piIntegration.PIFields;
         staticResourceContact = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact'));
+        AWSToSobjectEncryptedMap = new Map<String,String>();
+        for (PI_Field_Policy_Detail__c PIDetail : piIntegration.PIDetails) {
+            AWSToSobjectEncryptedMap.put(PIDetail.AWS_Field_API__c, PIDetail.SF_Field_API_Name__c);
+        }
     }
 
     global class Response{

--
Gitblit v1.9.1