From 1a846a596c87cf9674caff2c0571962b9909fb58 Mon Sep 17 00:00:00 2001
From: 彭锟 <pengkun@prec-tech.com>
Date: 星期二, 29 三月 2022 17:43:10 +0800
Subject: [PATCH] 329,624batch,601batch,606batch相关更改
---
force-app/main/default/classes/UpdateContractAimAmountHandler.cls | 34 +++++++++++++++++++++++++---------
1 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
index 0b103cf..3fbe80a 100644
--- a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
+++ b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
@@ -12,11 +12,16 @@
}
protected override void beforeUpdate() {
changeAssume();
+ SetAwaitToSendAWS();//new
+ }
+ //new
+ protected override void beforeInsert() {
+ SetAwaitToSendAWS();//new
}
protected override void afterInsert() {
createAgencyTarget();
- SetAwaitToSendAWS();
+ //SetAwaitToSendAWS();//old
}
@@ -25,8 +30,7 @@
// LHJ KWAG-BQMA89 202006 Start
updateAgencyAccout();
// LHJ KWAG-BQMA89 202006 End
-
- SetAwaitToSendAWS();
+ //SetAwaitToSendAWS();//old
}
@@ -207,7 +211,11 @@
if (!NFM601_IdMap.containsKey(acc.Id)) {
// 鍒ゆ柇鏄惁鏄帴鍙g敤鎴�
if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){
- interfaceUserUpsertAccount.add(acc.Id);
+ //姝ゅ鍋氫慨鏀癸紝NFM624Rest鎺ユ敹鏁版嵁鍚庤Е鍙憈rigger锛宼rigger鍐嶅幓璋冪敤601瀛樺湪bug锛屼慨鏀逛负澧炲姞鏍囪锛屼娇鐢˙atch鍙戦��
+ //interfaceUserUpsertAccount.add(acc.Id);
+ //2022-3-28 pk start
+ acc.NFM601Tag__c = true;
+ //2022-3-28 pk end
} else {
queueableAccountIdList.add(acc.Id);
}
@@ -235,7 +243,10 @@
) {
if (!NFM601_IdMap.containsKey(acc.Id)) {
if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){
- interfaceUserUpsertAccount.add(acc.Id);
+ //interfaceUserUpsertAccount.add(acc.Id);
+ //2022-3-28 pk start
+ acc.NFM601tag__c = true;
+ //2022-3-28 pk start
} else {
queueableAccountIdList.add(acc.Id);
}
@@ -246,14 +257,19 @@
}
}
- 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);
}
- if (interfaceUserUpsertAccount.size() > 0) {
- NFM601Controller.executefuture('', interfaceUserUpsertAccount);
- }
+ // if (interfaceUserUpsertAccount.size() > 0) {
+ // NFM601Controller.executefuture('', interfaceUserUpsertAccount);
+ // }
}
}
--
Gitblit v1.9.1