From 24f9763120296b88667f0da4e398184a6aa3d3b7 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期四, 24 三月 2022 17:36:40 +0800
Subject: [PATCH] 维修委托书打印
---
force-app/main/default/triggers/AccountTrigger.trigger | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/force-app/main/default/triggers/AccountTrigger.trigger b/force-app/main/default/triggers/AccountTrigger.trigger
index e1fa5c8..1476603 100644
--- a/force-app/main/default/triggers/AccountTrigger.trigger
+++ b/force-app/main/default/triggers/AccountTrigger.trigger
@@ -131,26 +131,27 @@
}
//HWAG-B4PCZ5 2018-09-19 end
//NFM112 2021/11/10 start
- String Idbox;
+ List<String> IdList = new List<String>();
for(Account account : Trigger.new){
Account old = Trigger.oldMap.get(account.Id);
if(old.FirstParagraph__c != account.FirstParagraph__c || old.MonthlyPayment__c != account.MonthlyPayment__c){
- Idbox = account.Id;
+ IdList.add(account.Id);
}
}
- if(Idbox != null){
- BatchIF_Log__c iflog = new BatchIF_Log__c();
- iflog.Type__c = 'NFM112';
- iflog.Log__c = 'callout start\n';
- insert iflog;
- iflog = [Select Id, Name from BatchIF_Log__c where Id = :iflog.Id];
- System.debug(Logginglevel.DEBUG, 'NFM112_' + iflog.Name + ' start');
- NFM112Controller.executeNotFuture(iflog.Id, Idbox);
+ if(IdList.size()>0){
+ for(String Id : IdList){
+ BatchIF_Log__c iflog = new BatchIF_Log__c();
+ iflog.Type__c = 'NFM112';
+ iflog.Log__c = 'callout start\n';
+ insert iflog;
+ //iflog = [Select Id, Name from BatchIF_Log__c where Id = :iflog.Id];
+ //System.debug(Logginglevel.DEBUG, 'NFM112_' + iflog.Name + ' start');
+ NFM112Controller.executeNotFuture(iflog.Id, Id);
+ }
}
//NFM112 2021/11/10 end
}
-
- //add wangweipeng 2022/02/10 start
+ //add wangweipeng 2022/02/10 start
//缁忛攢鍟嗙殑鎬ц川鍙戠敓鍙樺寲锛岄偅涔堥渶瑕佸彂閭欢锛屽叾涓竴涓敹浠朵汉涓哄ぇ鍖哄姪鐞�
//澶у尯鍔╃悊锛氭牴鎹缁忛攢鍟嗘墍鍦ㄧ殑閭d釜澶у尯锛屾潵鍒ゆ柇鍒板簳鍙戠粰璋侊紝姣忎釜澶у尯鍔╃悊閮芥湁涓�涓汉锛岀洰鍓嶆槸瀛樺埌鑷畾涔夋簮鏁版嵁閲岄潰浜�
if(Trigger.isBefore){
--
Gitblit v1.9.1