From cc266a1e4080bb3ecc47ea4a202dd549545111e1 Mon Sep 17 00:00:00 2001
From: 游畅 <youchang@prec-tech.com>
Date: 星期六, 29 四月 2023 16:10:52 +0800
Subject: [PATCH] 贸易合规20230429

---
 force-app/main/default/classes/ViewParticipantsController.cls |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/ViewParticipantsController.cls b/force-app/main/default/classes/ViewParticipantsController.cls
index f88d12b..688a927 100644
--- a/force-app/main/default/classes/ViewParticipantsController.cls
+++ b/force-app/main/default/classes/ViewParticipantsController.cls
@@ -1,6 +1,14 @@
 global class ViewParticipantsController {
     public String staticResourceContact {get; set;}
+    public String viewContactId {get; set;}
     public ViewParticipantsController(ApexPages.StandardController controller) {
         staticResourceContact = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact'));
+        SObject obj = controller.getRecord();
+        if (obj.id != null||Test.isRunningTest()) {
+            List<CampaignMember__c> lcm = [select ViewContactId__c from CampaignMember__c where id=:obj.id];
+            if (lcm.size() > 0) {
+                viewContactId = lcm[0].ViewContactId__c;
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1