From 083202a12647b4f1f8545b8e7bc423bc035786a2 Mon Sep 17 00:00:00 2001 From: 黄千龙 <huangqianlong@prec-tech.com> Date: 星期二, 28 三月 2023 10:19:06 +0800 Subject: [PATCH] 上限合同VM --- 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