From 8badb57ea2c82557850ad5b39281c3e8714eb119 Mon Sep 17 00:00:00 2001
From: liuyan <liuyan@prec-tech.com>
Date: 星期四, 24 十一月 2022 10:08:31 +0800
Subject: [PATCH] 科室信息漏传SPO问题

---
 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