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/NFM106Controller.cls | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/NFM106Controller.cls b/force-app/main/default/classes/NFM106Controller.cls
index e2d3c42..eb2fe2e 100644
--- a/force-app/main/default/classes/NFM106Controller.cls
+++ b/force-app/main/default/classes/NFM106Controller.cls
@@ -24,7 +24,18 @@
public String QuotationAmount;
public String ContractPeriod;
public PaymentInformation_element[] PaymentInformation;
+ //URF闄愭鍚堝悓2鏈� LY 20220811 start
+ public SeriesInformation_element[] SeriesInformation;
+ //URF闄愭鍚堝悓2鏈� LY 20220811 end
+
}
+ //URF闄愭鍚堝悓2鏈� LY 20220811 start
+ public class SeriesInformation_element {
+ public String SeriesNo;
+ public String RepairTime;
+ public String SeriesAmount;
+ }
+ //URF闄愭鍚堝悓2鏈� LY 20220811 end
public class RepairContractLogin_element {
public NFMUtil.Monitoring Monitoring;
public GeneralData_element[] GeneralData;
@@ -66,6 +77,11 @@
}
}
}
+ //Repair娴嬭瘯绫昏烦杩� thh 20220401 start
+ if(StaticParameter.EscapeNFM106Trigger){
+ return;
+ }
+ //Repair娴嬭瘯绫昏烦杩� thh 20220401 end
if (Trigger.isBefore) {
if (Trigger.isUpdate) {
for(Maintenance_Contract__c mc : newList) {
@@ -206,6 +222,14 @@
// LJPH-BS89NQ start
upload_to_sap_time__c
// LJPH-BS89NQ end
+ //URF闄愭鍚堝悓2鏈� LY 20220811 start
+ ,Estimation_Id__r.Total_Number_Asset_P__c
+ ,Estimation_Id__r.URF_P_RepairTime__c
+ ,Estimation_Id__r.Estimate_List_Price_Sum_P__c
+ ,Estimation_Id__r.Total_Number_Asset_V__c
+ ,Estimation_Id__r.URF_V_RepairTime__c
+ ,Estimation_Id__r.Estimate_List_Price_Sum_V__c
+ //URF闄愭鍚堝悓2鏈� LY 20220811 end
from Maintenance_Contract__c where Id IN :mcIds]; // 鍓婇櫎銉囥兗銈裤倰妞滅储銇椼仾銇勩伅銇氥�丄ll ROWS 銇勩倝銇亜銇仛
System.debug(Logginglevel.DEBUG, 'NFM106_ recptList.size()=' + mcList.size());
@@ -284,6 +308,23 @@
}
// HWAG-BE88UG 銆愬鎵樸�慡FDC-SAP鎼幇鏈夋帴鍙f坊鍔犲悎鍚屸�滀粯娆捐鍒掆�濅俊鎭� by vivek end
+ //URF闄愭鍚堝悓2鏈� LY 20220811 start
+ element.SeriesInformation = new List<SeriesInformation_element>();
+ if(mc.Estimation_Id__r.Total_Number_Asset_P__c != null && mc.Estimation_Id__r.Total_Number_Asset_P__c != 0){
+ SeriesInformation_element seriesInformationP = new SeriesInformation_element();
+ element.SeriesInformation.add(seriesInformationP);
+ seriesInformationP.SeriesNo = 'P';
+ seriesInformationP.RepairTime = mc.Estimation_Id__r.URF_P_RepairTime__c.toPlainString();
+ seriesInformationP.SeriesAmount = mc.Estimation_Id__r.Estimate_List_Price_Sum_P__c.toPlainString();
+ }
+ if(mc.Estimation_Id__r.Total_Number_Asset_V__c != null && mc.Estimation_Id__r.Total_Number_Asset_V__c != 0){
+ SeriesInformation_element seriesInformationP = new SeriesInformation_element();
+ element.SeriesInformation.add(seriesInformationP);
+ seriesInformationP.SeriesNo = 'V';
+ seriesInformationP.RepairTime = mc.Estimation_Id__r.URF_V_RepairTime__c.toPlainString();
+ seriesInformationP.SeriesAmount = mc.Estimation_Id__r.Estimate_List_Price_Sum_V__c.toPlainString();
+ }
+ //URF闄愭鍚堝悓2鏈� LY 20220811 end
logstr += '[' + element.ContractNo + ']EndUserNoorAgentNo[' + element.EndUserNoorAgentNo + '] ';
}
--
Gitblit v1.9.1