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/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