From ca51336f247021aa79b8863522e15e8dee957e19 Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 21 三月 2022 10:19:49 +0800
Subject: [PATCH] 盘点Copy邮件标头修改
---
force-app/main/default/classes/ContactTriggerHandler.cls | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/ContactTriggerHandler.cls b/force-app/main/default/classes/ContactTriggerHandler.cls
index d5d7095..706b3c3 100644
--- a/force-app/main/default/classes/ContactTriggerHandler.cls
+++ b/force-app/main/default/classes/ContactTriggerHandler.cls
@@ -373,7 +373,7 @@
// 鍖婚櫌 瀹㈡埛浜哄憳 缁熶竴骞冲彴缂栫爜鏈夊�� 鍙戦�� PO
if ('01210000000QfWdAAK'.equals(local.RecordTypeId) && String.isNotBlank(local.UnifiedI_Contact_ID__c)) {
if (!NFM606_IdMap.containsKey(local.Id)) {
- if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){
+ if(UserInfo.getProfileId().equals(System.Label.ProfileId_SystemAdmin)){
interfaceUserUpsertContact.add(local.Id);
} else {
contactIdList.add(local.Id);
@@ -384,7 +384,7 @@
// 缁忛攢鍟� 瀹㈡埛浜哄憳 鎵嬫満鍙风爜鏈夊�� 鍙戦�� PO
if ('01210000000QfWiAAK'.equals(local.RecordTypeId) && String.isNotBlank(local.MobilePhone)) {
if (!NFM606_IdMap.containsKey(local.Id)) {
- if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){
+ if(UserInfo.getProfileId().equals(System.Label.ProfileId_SystemAdmin)){
interfaceUserUpsertContact.add(local.Id);
} else {
contactIdList.add(local.Id);
--
Gitblit v1.9.1