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/Opponent_Bid_InformationHandler.cls | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/force-app/main/default/classes/Opponent_Bid_InformationHandler.cls b/force-app/main/default/classes/Opponent_Bid_InformationHandler.cls
index b949ec6..efa4407 100644
--- a/force-app/main/default/classes/Opponent_Bid_InformationHandler.cls
+++ b/force-app/main/default/classes/Opponent_Bid_InformationHandler.cls
@@ -1,6 +1,6 @@
public class Opponent_Bid_InformationHandler extends Oly_TriggerHandler {
-
- private Map<Id, Opponent_Bid_Information__c> newMap;
+/**
+ private Map<Id, Opponent_Bid_Information__c> newMap;
private Map<Id, Opponent_Bid_Information__c> oldMap;
private List<Opponent_Bid_Information__c> newList;
private List<Opponent_Bid_Information__c> oldList;
@@ -18,7 +18,7 @@
updateOpponentInfo();
}
private void updateOpponentInfo() {
- List<Opportunity> oppList = new List<Opportunity>();
+ List<Opportunity> oppList = new List<Opportunity>();
// 鍥犱负娌℃硶璺ㄨ〃锛屾墍浠ヨ繘琛宻elect锛屽鏋滀娇鐢ㄩ偅浜涘瓧娈碉紝闇�瑕佹墜鍔ㄦ坊鍔�
List<Opponent_Bid_Information__c> temOBIList =
[select id,Opportunity__c,Report_Status__c,
@@ -30,20 +30,20 @@
CompetitorProduct4__r.id, CompetitorProduct4__r.Name
from Opponent_Bid_Information__c
where id in: newList];
- for (Opponent_Bid_Information__c n : temOBIList) {
+ for (Opponent_Bid_Information__c n : temOBIList) {
if (n.Report_Status__c == '鎵瑰噯' ) {
- Opportunity opp = new Opportunity();
+ Opportunity opp = new Opportunity();
opp.id = n.Opportunity__c;
- opp.Lost_By_Company_part__c = n.Lost_By_Company__c;
- opp.Lost_reason_main_part__c = n.Lost_reason_main__c;
- opp.of_lost_system_processor_part__c = n.of_lost_system_processor__c;
+ opp.Lost_By_Company_part__c = n.Lost_By_Company__c;
+ opp.Lost_reason_main_part__c = n.Lost_reason_main__c;
+ opp.of_lost_system_processor_part__c = n.of_lost_system_processor__c;
if(n.Lost_Reason_Sub__c!=null){
- opp.Lost_Reason_Sub_part__c = n.Lost_Reason_Sub__c+';';
+ opp.Lost_Reason_Sub_part__c = n.Lost_Reason_Sub__c+';';
}else{
opp.Lost_Reason_Sub_part__c = n.Lost_Reason_Sub__c;
}
- opp.Lost_By_Product_part__c = n.Lost_By_Product__c;
+ opp.Lost_By_Product_part__c = n.Lost_By_Product__c;
if (n.CompetitorProduct1__r.id == '01t10000000Tqam') {
opp.CompetitorProduct1_part__c = n.Lost_By_Product__c;
@@ -66,9 +66,10 @@
opp.CompetitorProduct4_part__c = n.CompetitorProduct4__r.Name;
}
oppList.add(opp);
+
}
}
if (oppList.size() > 0) update oppList;
- }
+ }**/
}
\ No newline at end of file
--
Gitblit v1.9.1