From ca1c0956ec5d16a44bd0a2c10e0e49db37c0fb32 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 08 三月 2023 09:35:52 +0800
Subject: [PATCH] 20230307询价2期Batch增加入Schedule

---
 force-app/main/default/triggers/InspectionReportTrigger.trigger |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/triggers/InspectionReportTrigger.trigger b/force-app/main/default/triggers/InspectionReportTrigger.trigger
index 6d44e9d..a043b0a 100644
--- a/force-app/main/default/triggers/InspectionReportTrigger.trigger
+++ b/force-app/main/default/triggers/InspectionReportTrigger.trigger
@@ -1,4 +1,6 @@
 trigger InspectionReportTrigger on Inspection_Report__c (after insert, after update, before delete) {
-    InspectionReportTriggerHandler handler = new InspectionReportTriggerHandler();
-    handler.run();
+    if(Test.isRunningTest()||UserInfo.getUserId()!=System.Label.ByPassTrigger){
+        InspectionReportTriggerHandler handler = new InspectionReportTriggerHandler();
+        handler.run();
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1