From 928399eceec50e3d37ea08669a12789a9410a9d2 Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期二, 22 十一月 2022 16:51:16 +0800
Subject: [PATCH] 111
---
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