From d79fcb2a960e8b0e18fe039d892f98187b08866d Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期五, 23 九月 2022 18:24:58 +0800
Subject: [PATCH] 招标项目失单报告
---
force-app/main/default/classes/LostReportHandler.cls | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/LostReportHandler.cls b/force-app/main/default/classes/LostReportHandler.cls
index d99a218..e8f0238 100644
--- a/force-app/main/default/classes/LostReportHandler.cls
+++ b/force-app/main/default/classes/LostReportHandler.cls
@@ -556,6 +556,7 @@
//鏍规嵁閬楀け鎶ュ憡鏌ヨ閬楀け鎶ュ憡鏄庣粏
if(LostReprotSet.size()>0){
List<LostReport_Detail__c> LostReprotDetailList = [SELECT Id,Rental_Apply_Equipment_Set_Detail__c FROM LostReport_Detail__c WHERE Rental_Apply_Equipment_Set_Detail__c != null AND LostReport__c in :LostReprotSet];
+ Date today = Date.today();
if(LostReprotDetailList.size()>0){
//瀛樻斁鍊熷嚭澶囧搧閰嶅涓�瑙堟槑缁�
List<Rental_Apply_Equipment_Set_Detail__c> needUpdateRentalDetail = new List<Rental_Apply_Equipment_Set_Detail__c>();
@@ -563,6 +564,7 @@
Rental_Apply_Equipment_Set_Detail__c tempDetail = new Rental_Apply_Equipment_Set_Detail__c();
tempDetail.Id = ld.Rental_Apply_Equipment_Set_Detail__c;
tempDetail.LoseReportApprovaled__c = true;
+ tempDetail.LostReportApprovalDate__c = today;
needUpdateRentalDetail.add(tempDetail);
}
--
Gitblit v1.9.1