From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/UpdateContractAimAmountHandler.cls | 59 +++++++++++++++++++++++++++++++++++++++--------------------
1 files changed, 39 insertions(+), 20 deletions(-)
diff --git a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
index 3fbe80a..a9dcdb1 100644
--- a/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
+++ b/force-app/main/default/classes/UpdateContractAimAmountHandler.cls
@@ -12,16 +12,14 @@
}
protected override void beforeUpdate() {
changeAssume();
- SetAwaitToSendAWS();//new
+ //SetAwaitToSendAWS();//new
+ CustomizePageJudge();//20221121 lt
}
- //new
- protected override void beforeInsert() {
- SetAwaitToSendAWS();//new
- }
+
protected override void afterInsert() {
createAgencyTarget();
- //SetAwaitToSendAWS();//old
+ SetAwaitToSendAWS();
}
@@ -30,7 +28,7 @@
// LHJ KWAG-BQMA89 202006 Start
updateAgencyAccout();
// LHJ KWAG-BQMA89 202006 End
- //SetAwaitToSendAWS();//old
+ SetAwaitToSendAWS();//old
}
@@ -211,11 +209,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);
}
@@ -234,6 +228,11 @@
|| acc.Phone != old.Phone //鐢佃瘽
|| acc.Postal_Code__c != old.Postal_Code__c //閭紪
|| acc.Address__c != old.Address__c //鍦板潃
+ //LLIU-CGRCGK LY 20220728 start
+ || (developerId == '01210000000QemGAAS' && //鍖婚櫌
+ (acc.OCM_Category__c != old.OCM_Category__c //OCSM鍒嗙被(鍖婚櫌)
+ || acc.Grade__c != old.Grade__c ) )//鏀垮簻绛夌骇
+ //LLIU-CGRCGK LY 20220728 end
|| (developerId == '01210000000Qem1AAC' && //缁忛攢鍟�
(acc.Business_Paper_Expiration_Date__c != old.Business_Paper_Expiration_Date__c || //钀ヤ笟鎵х収鏈夋晥鏈熼檺
acc.Tax_Practice_Expiration_Date__c != old.Tax_Practice_Expiration_Date__c || //绋庡姟鐧昏璇佹湁鏁堟湡闄�
@@ -243,16 +242,14 @@
) {
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);
}
NFM601_IdMap.put(acc.Id, acc.Id);
}
}
+
}
}
@@ -262,15 +259,37 @@
//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);
+ }
}
}
+
+ //20221121 lt LLIU-CKB5H9銆愬鎵樸�戙�愬尰闄€�戝尰闄㈡柊寤虹敵璇峰拰鍙樻洿绯荤粺鍖� start
+ public void CustomizePageJudge(){
+
+ for (Account acc : newList){
+ System.debug('lt123-----new瀹℃壒姝ラ-----'+acc.ApprovalSteps__c);
+ System.debug('lt123-----old瀹℃壒姝ラ-----'+oldMap.get(acc.Id).ApprovalSteps__c);
+ if(acc.ApprovalSteps__c != oldMap.get(acc.Id).ApprovalSteps__c){
+ System.debug('lt123-----瀹℃壒姝ラ鏀瑰彉-----');
+ if(acc.CustomizePageFlg__c == true){
+ System.debug('lt123-----acc.CustomizePageFlg__c-----'+acc.CustomizePageFlg__c);
+ acc.CustomizePageFlg__c = false;
+ }else{
+ System.debug('lt123-----else,acc.CustomizePageFlg__c-----'+acc.CustomizePageFlg__c);
+ acc.addError('璇风偣鍑婚摼鎺�(鐩稿叧椤�)纭鍏蜂綋淇℃伅鍚庡鎵广��');
+ }
+ }
+ }
+ }
+
+ //20221121 lt LLIU-CKB5H9銆愬鎵樸�戙�愬尰闄€�戝尰闄㈡柊寤虹敵璇峰拰鍙樻洿绯荤粺鍖� end
+
}
\ No newline at end of file
--
Gitblit v1.9.1