From 4420517bbbffea48cabe7a7dcdf2e1c4b440fc85 Mon Sep 17 00:00:00 2001
From: GWY <guweiyi@prec-tech.com>
Date: 星期一, 30 五月 2022 16:15:26 +0800
Subject: [PATCH] 两个LS特殊条件在说明的增减
---
force-app/main/default/triggers/SWOTrigger.trigger | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/triggers/SWOTrigger.trigger b/force-app/main/default/triggers/SWOTrigger.trigger
index 397c7da..8231412 100644
--- a/force-app/main/default/triggers/SWOTrigger.trigger
+++ b/force-app/main/default/triggers/SWOTrigger.trigger
@@ -1,5 +1,8 @@
trigger SWOTrigger on SWO__c (before insert,after insert,before update) {
- if(trigger.isBefore){
+ if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+ return;
+ }
+ if(trigger.isBefore){
SWOTriggerHandler.setDateTimeSendEmail(trigger.new, trigger.newMap, trigger.old, trigger.oldMap);
}
if(trigger.isAfter && trigger.isInsert){
--
Gitblit v1.9.1