From 1fb0d62c569a30bc0b4c30f48212c5582233184b Mon Sep 17 00:00:00 2001
From: GWY <guweiyi@prec-tech.com>
Date: 星期三, 11 五月 2022 19:01:36 +0800
Subject: [PATCH] 更改逻辑,无影响。
---
force-app/main/default/triggers/loanerAppStatusUp.trigger | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/triggers/loanerAppStatusUp.trigger b/force-app/main/default/triggers/loanerAppStatusUp.trigger
index 44c06d6..1d03855 100644
--- a/force-app/main/default/triggers/loanerAppStatusUp.trigger
+++ b/force-app/main/default/triggers/loanerAppStatusUp.trigger
@@ -1,4 +1,7 @@
trigger loanerAppStatusUp on loaner_application__c (before insert,before update, after update) {
+ if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+ return;
+ }
if (Trigger.isBefore && Trigger.isUpdate) {
loanerAppTriggerHandler.setSubmitUser(Trigger.new, Trigger.newMap, Trigger.old, Trigger.oldMap);
}
--
Gitblit v1.9.1