From 84b24801b8e0e071589ea57b29e64f73e13b1c0c Mon Sep 17 00:00:00 2001
From: 付煜 <fuyu3103346691@163.com>
Date: 星期一, 21 三月 2022 14:54:15 +0800
Subject: [PATCH] SWAG-CCEB67【委托】【重要】保有设备所属变更审批报错

---
 force-app/main/default/classes/UpdateContractAimAmountHandler.cls |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
index 0b103cf..bfbcf19 100644
--- a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
+++ b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
@@ -246,7 +246,12 @@
             }
     
         }
-        if(!System.Test.isRunningTest()){
+        //Before : 
+        //if(!System.Test.isRunningTest()){
+        //After : to avoid mutiple execute
+        //if(!(System.Test.isRunningTest()||System.isFuture()||System.isBatch())){
+        //Update by Li Jun for PIPL 20220304
+        if(!(System.Test.isRunningTest()||System.isFuture()||System.isBatch())){
 
             if (queueableAccountIdList.size() > 0) {
                 NFM601Controller.callout('', queueableAccountIdList);

--
Gitblit v1.9.1