From cd730d0b1a775abacfba06003bb58327d5d1fb3c Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 02 二月 2023 12:23:31 +0800
Subject: [PATCH] 同步数据
---
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