From 4ae5737c016b2014dab9101adc55d27cdb0904ca Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 21 三月 2022 18:37:25 +0800
Subject: [PATCH] NFM105限次合同异常数据
---
force-app/main/default/classes/RepairTrigger.cls | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/force-app/main/default/classes/RepairTrigger.cls b/force-app/main/default/classes/RepairTrigger.cls
index 4d36d5f..14a9d14 100644
--- a/force-app/main/default/classes/RepairTrigger.cls
+++ b/force-app/main/default/classes/RepairTrigger.cls
@@ -706,13 +706,14 @@
List<Repair__c> updateRepairList = new List<Repair__c>();
System.debug('newList1:' + newList);
for(Repair__c rep : newList){
- Repair__c oldRep = oldMap.get(rep.Id);
if(rep.Repair_Quotation_Id__c != null){
RepairQuotationIdList.add(rep.Repair_Quotation_Id__c);
}else{
NoRepairQuotationList.add(rep);
}
}
+ System.debug('RepairQuotationIdList1:' + RepairQuotationIdList);
+ System.debug('NoRepairQuotationList1:' + NoRepairQuotationList);
//鍚屾湡涓殑淇悊淇悊鎶ヤ环鏈夊�兼椂锛岀湅鎶ヤ环涓婄殑鍏堟鏍囪瘑杩涜璧嬪��
if(RepairQuotationIdList.size() > 0){
RepairQuotationList = [select Id, Is_RecognitionModel__c from Repair_Quotation__c where Id IN :RepairQuotationIdList];
@@ -721,7 +722,7 @@
for(Repair__c rep : newList){
if(rq.Id == rep.Repair_Quotation_Id__c){
rep.Advance_Payment_Flag__c = rq.Is_RecognitionModel__c;
- updateRepairList.add(rep);
+ // updateRepairList.add(rep);
}
}
}
@@ -738,19 +739,13 @@
for(Repair__c rep : newList){
if(rep.Dealer__c == dealer.Id){
rep.Advance_Payment_Flag__c = dealer.FirstParagraphEnd__c;
- updateRepairList.add(rep);
+ // updateRepairList.add(rep);
}
}
}
- Savepoint sp = Database.setSavepoint();
- try {
- if(updateRepairList.size() > 0){
- update updateRepairList;
- }
- } catch (System.Exception e) {
- Database.rollback(sp);
- ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, e.getMessage()));
- }
+ // if(updateRepairList.size() > 0){
+ // update updateRepairList;
+ // }
}
//鍏堟鍚庝慨-淇悊澧炲姞鍏堟鏍囪瘑 thh 20220318 end
--
Gitblit v1.9.1