From 042735c4d44e740121dbbb52257617d348a1c391 Mon Sep 17 00:00:00 2001
From: fuyu <fuyu@prec-tech.com>
Date: 星期一, 06 三月 2023 13:39:38 +0800
Subject: [PATCH] Merge branch '进口单证+obsap+导入'

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

diff --git a/force-app/main/default/triggers/CheckInspectionSubmitUser.trigger b/force-app/main/default/triggers/CheckInspectionSubmitUser.trigger
index 9b82fed..4fb814b 100644
--- a/force-app/main/default/triggers/CheckInspectionSubmitUser.trigger
+++ b/force-app/main/default/triggers/CheckInspectionSubmitUser.trigger
@@ -1,4 +1,7 @@
 trigger CheckInspectionSubmitUser on Inspection_Report__c (after update) {
+    if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+        return;
+    }
     List<String> reporters = new List<String>();
     Map<Id, Id> irHpMap = new Map<Id, Id>();
     for (Inspection_Report__c ir : Trigger.new) {

--
Gitblit v1.9.1