From 47807a3ee0b770e941b3ec7335de439200cc417e Mon Sep 17 00:00:00 2001 From: 彭锟 <pengkun@prec-tech.com> Date: 星期三, 30 三月 2022 19:50:50 +0800 Subject: [PATCH] 330 624相关修改 --- force-app/main/default/classes/UpdateContractAimAmountHandler.cls | 19 ++++++------------- 1 files changed, 6 insertions(+), 13 deletions(-) diff --git a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls index 3fbe80a..b2e4f4c 100644 --- a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls +++ b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls @@ -211,11 +211,7 @@ if (!NFM601_IdMap.containsKey(acc.Id)) { // 鍒ゆ柇鏄惁鏄帴鍙g敤鎴� if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){ - //姝ゅ鍋氫慨鏀癸紝NFM624Rest鎺ユ敹鏁版嵁鍚庤Е鍙憈rigger锛宼rigger鍐嶅幓璋冪敤601瀛樺湪bug锛屼慨鏀逛负澧炲姞鏍囪锛屼娇鐢˙atch鍙戦�� - //interfaceUserUpsertAccount.add(acc.Id); - //2022-3-28 pk start - acc.NFM601Tag__c = true; - //2022-3-28 pk end + interfaceUserUpsertAccount.add(acc.Id); } else { queueableAccountIdList.add(acc.Id); } @@ -243,10 +239,7 @@ ) { if (!NFM601_IdMap.containsKey(acc.Id)) { if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){ - //interfaceUserUpsertAccount.add(acc.Id); - //2022-3-28 pk start - acc.NFM601tag__c = true; - //2022-3-28 pk start + interfaceUserUpsertAccount.add(acc.Id); } else { queueableAccountIdList.add(acc.Id); } @@ -262,14 +255,14 @@ //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(!(System.Test.isRunningTest())){ if (queueableAccountIdList.size() > 0) { NFM601Controller.callout('', queueableAccountIdList); } - // if (interfaceUserUpsertAccount.size() > 0) { - // NFM601Controller.executefuture('', interfaceUserUpsertAccount); - // } + if (interfaceUserUpsertAccount.size() > 0) { + NFM601Controller.executefuture('', interfaceUserUpsertAccount); + } } } -- Gitblit v1.9.1