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/OpportunityTrigger.trigger | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/triggers/OpportunityTrigger.trigger b/force-app/main/default/triggers/OpportunityTrigger.trigger
index 4997717..32a5fd8 100644
--- a/force-app/main/default/triggers/OpportunityTrigger.trigger
+++ b/force-app/main/default/triggers/OpportunityTrigger.trigger
@@ -1,4 +1,7 @@
trigger OpportunityTrigger on Opportunity (before insert, before update, after insert, after update) {
+ if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+ return;
+ }
if(Trigger.new[0].DealerIsOk__c == true && Trigger.new[0].CrossCooperativeDealer__c == null){
Trigger.new[0].addError('璇峰~鍐欏悎浣滃尯鍩熶唬鐞嗗晢');
--
Gitblit v1.9.1