From 08a21f49f2eaf9cfc19ceb67b196cc36ba689305 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 13 五月 2022 20:52:25 +0800
Subject: [PATCH] FIxSWOPageIssue
---
force-app/main/default/triggers/OrderTrigger.trigger | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/triggers/OrderTrigger.trigger b/force-app/main/default/triggers/OrderTrigger.trigger
index 291c482..64419a4 100644
--- a/force-app/main/default/triggers/OrderTrigger.trigger
+++ b/force-app/main/default/triggers/OrderTrigger.trigger
@@ -1,4 +1,12 @@
+/*
+ *@Description: OrderTrigger
+ *@Author: Dennis Rodman
+ *@Date: 2022-04-14 14:31:47
+*/
trigger OrderTrigger on Order (before insert, before update, after insert, after update) {
+ if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+ return;
+ }
if (Trigger.isBefore && Trigger.isInsert) {
System.debug('@@@@@@@@@@@@@@!!!!!!!!!!!!!!!');
--
Gitblit v1.9.1