From e086d26f5ea28d42f78f836d6a8be5c686c1f36d Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期二, 17 五月 2022 17:31:38 +0800
Subject: [PATCH] 【委托】【期初修改4月6日开始修改】目标录入相关判断修改

---
 force-app/main/default/triggers/ContactHpDeptUpd.trigger |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/triggers/ContactHpDeptUpd.trigger b/force-app/main/default/triggers/ContactHpDeptUpd.trigger
index af14dde..c7de2bd 100644
--- a/force-app/main/default/triggers/ContactHpDeptUpd.trigger
+++ b/force-app/main/default/triggers/ContactHpDeptUpd.trigger
@@ -1,5 +1,8 @@
 //鍖荤檪寰撲簨鑰呫伄瑷虹檪绉�(鍏煎嫏鍏�)銈掑鏇淬伄鍫村悎銆佹垿鐣ョ瀹ゃ兓鐥呴櫌銈備慨姝�
 trigger ContactHpDeptUpd on Contact (before insert, before update) {
+    if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+        return;
+    }
     List<String> accIds = new List<String>();
     List<String> FirstNameList = new List<String>();
     List<String> LastnameList = new List<String>();

--
Gitblit v1.9.1