From 962519811b7c4be07f30d09e791798b0ea79d3ae Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 08 三月 2023 09:54:02 +0800
Subject: [PATCH] 同步代码
---
force-app/main/default/classes/LostCancelReportHandler.cls | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/classes/LostCancelReportHandler.cls b/force-app/main/default/classes/LostCancelReportHandler.cls
index 08ddacd..a864cd5 100644
--- a/force-app/main/default/classes/LostCancelReportHandler.cls
+++ b/force-app/main/default/classes/LostCancelReportHandler.cls
@@ -214,6 +214,7 @@
List<PCLLostProduct__c> lcrList=[select id,PCLLostBrand__r.Lost_cancel_report__r.of_lost_system_processor__c,
PCLLostBrand__r.Lost_Reason_Sub__c,PCLLostBrand__r.Lost_cancel_report__r.LostTotalAmount__c,
+ PCLLostBrand__r.Lost_cancel_report__r.TotalAmountLost__c, //20230215 lt DB202302247719
PCLLostBrand__r.Lost_cancel_report__r.LostType__c,PCLLostBrand__r.Lost_By_Company__c,
PCLLostBrand__r.Lost_By_Company_Mannual__c,PCLLostBrand__r.LostPrice__c,LostProduct__r.Name,
PCLLostBrand__r.Lost_reason_main__c,PCLLostBrand__r.Agency__r.Name,PCLLostBrand__r.AgencyMannual__c,
@@ -233,22 +234,17 @@
Opportunity opp=new Opportunity();
//20220930 lt SWAG-CHL5XA銆怓Y23璇环鏀瑰杽銆�-缁熻涓绘満鍙版暟 start
opp.RivalHostsNumber__c = 0;
- System.debug('lt123鍒濆澶卞崟涓绘満鏁�'+ opp.RivalHostsNumber__c);
//20220930 lt SWAG-CHL5XA銆怓Y23璇环鏀瑰杽銆�-缁熻涓绘満鍙版暟 end
opp.Id=arrMap.get(lcro).Opportunity__c; opp.PCLLostBrands__c=''; opp.Agencies__c=''; //Id ,鍝佺墝,缁忛攢鍟�
// for浜у搧
for (PCLLostProduct__c lcr : lcrList) {
- System.debug('lt123涓绘満111'+ lcr.ProductClass__c);
if (opp.Id==lcr.Opportunity__c) {
//20220930 lt SWAG-CHL5XA銆怓Y23璇环鏀瑰杽銆�-缁熻涓绘満鍙版暟 start
- System.debug('lt123涓绘満'+ lcr.ProductClass__c);
if(lcr.ProductClass__c == '涓绘満'){
opp.RivalHostsNumber__c += lcr.Quantity__c;
- System.debug('lt123绱姞澶卞崟涓绘満鏁�'+ opp.RivalHostsNumber__c);
}else{
opp.RivalHostsNumber__c += 0;
- System.debug('lt123涓嶅彉澶卞崟涓绘満鏁�'+ opp.RivalHostsNumber__c);
}
//20220930 lt SWAG-CHL5XA銆怓Y23璇环鏀瑰杽銆�-缁熻涓绘満鍙版暟 end
@@ -325,10 +321,20 @@
// }
// }
//澶卞崟鎬婚噾棰�
- opp.LostPrices__c=lcr.PCLLostBrand__r.Lost_cancel_report__r.LostTotalAmount__c;
+ //opp.LostPrices__c=lcr.PCLLostBrand__r.Lost_cancel_report__r.LostTotalAmount__c;//20230215 lt DB202302247719 娉ㄩ噴
+ // opp.LostPrices__c=lcr.PCLLostBrand__r.Lost_cancel_report__r.TotalAmountLost__c; //20230215 lt DB202302247719
opp.of_lost_system_processor__c=lcr.PCLLostBrand__r.Lost_cancel_report__r.of_lost_system_processor__c;
}
}
+ //20230215 lt DB202302247719 start
+ if(arrMap.get(lcro).TotalAmountLost__c != null){
+ if(opp.LostPrices__c == null){
+ opp.LostPrices__c = 0;
+ }
+ opp.LostPrices__c+=arrMap.get(lcro).TotalAmountLost__c;
+ }
+ //20230215 lt DB202302247719 end
+
// 20221202 ljh DB202211594688 start
System.debug('zheli00:'+oppIdPZSet+'~'+opp.Id);
if(oppIdPZSet.contains(opp.Id)){
--
Gitblit v1.9.1