From e3c02c03dd2de442bbced87236f60a13a1cd154e Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期四, 02 三月 2023 17:51:57 +0800
Subject: [PATCH] gzw 正式环境最新代码更新
---
force-app/main/default/classes/NFM106Controller.cls | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 43 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/NFM106Controller.cls b/force-app/main/default/classes/NFM106Controller.cls
index b452dd6..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 + '] ';
}
@@ -391,7 +432,8 @@
// CHAN-BSV3GZ start
// 鍘熶唬鐮�
// rowData.retry_cnt__c=0;
- if (status == 'OK') {
+ system.debug('status15122021'+status);
+ if (status == 'ok') {
rowData.retry_cnt__c = 0;
} else {
if (rowData.retry_cnt__c == null) rowData.retry_cnt__c = 0;
--
Gitblit v1.9.1