From 7a4e110c2c3c6b14ae7c17ee96fa97cde04b4de0 Mon Sep 17 00:00:00 2001
From: sunxia <sunxia@prec-tech.com>
Date: 星期四, 09 三月 2023 12:09:02 +0800
Subject: [PATCH] EquipmentSetShippmentReceived5changebyRentalApplyFault
---
force-app/main/default/classes/NFM701ControllerHandler.cls | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/NFM701ControllerHandler.cls b/force-app/main/default/classes/NFM701ControllerHandler.cls
index b22304f..b588f95 100644
--- a/force-app/main/default/classes/NFM701ControllerHandler.cls
+++ b/force-app/main/default/classes/NFM701ControllerHandler.cls
@@ -11,9 +11,10 @@
this.oldList = (List<Account>) Trigger.old;
}
protected override void afterUpdate(){
- // if (!StaticParameter.EscapeNFM701Trigger) {
+ if (!StaticParameter.EscapeNFM701Trigger && !NFM701Controller.isRunning) {
+ NFM701Controller.isRunning = true;
updateAccount(this.newList , this.newMap , this.oldList , this.oldMap);
- // }
+ }
}
public static void updateAccount(List<Account> newList, Map<Id, Account> newMap, List<Account> oldList, Map<Id, Account> oldMap){
List<String> accIdList = new List<String>();
--
Gitblit v1.9.1