From 1312ba82d4c880bdb5357d28e0d4af5b285f610f Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期四, 10 三月 2022 15:54:39 +0800
Subject: [PATCH] 最近一月修改内容
---
force-app/main/default/classes/NFM701ControllerHandler.cls | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/NFM701ControllerHandler.cls b/force-app/main/default/classes/NFM701ControllerHandler.cls
index 9c8f0e8..b22304f 100644
--- a/force-app/main/default/classes/NFM701ControllerHandler.cls
+++ b/force-app/main/default/classes/NFM701ControllerHandler.cls
@@ -11,7 +11,9 @@
this.oldList = (List<Account>) Trigger.old;
}
protected override void afterUpdate(){
- updateAccount(this.newList , this.newMap , this.oldList , this.oldMap);
+ // if (!StaticParameter.EscapeNFM701Trigger) {
+ 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>();
@@ -24,7 +26,7 @@
if (newList.size()>0) {
// iflog.Log__c += '杩沬f';
for (Account acc : newList) {
- if(!acc.RecordType_DeveloperName__c.equals('Agency') && !acc.RecordType_DeveloperName__c.equals('AgencyContract') && !acc.RecordType_DeveloperName__c.contains('Department_Class')){
+ if(!acc.RecordType_DeveloperName__c.equals('Agency') && !acc.RecordType_DeveloperName__c.equals('AgencyContract') && !acc.RecordType_DeveloperName__c.contains('Department_')){
// iflog.Log__c += acc.RecordType.DeveloperName;
// iflog.Log__c += acc;
if(((acc.Is_Active__c != oldMap.get(acc.Id).Is_Active__c) && (acc.Is_Active__c.equals('鏈夊姽') || acc.Is_Active__c.equals('鐒″姽'))) || ((acc.Name != oldMap.get(acc.Id).Name) && (acc.Is_Active__c.equals('鏈夊姽')))){
--
Gitblit v1.9.1