From 13a007c5803ab3b52e7827c717640b1721cc96e5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期四, 13 七月 2023 18:31:07 +0800
Subject: [PATCH] 耗材申请 取消 选择明细 发货 耗材申请中间小画面 一览 选择操作画面借出耗材备品一览
---
force-app/main/default/classes/LexLostSubmitApprovalController.cls | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/classes/LexLostSubmitApprovalController.cls b/force-app/main/default/classes/LexLostSubmitApprovalController.cls
index 2902ba8..af3f9c6 100644
--- a/force-app/main/default/classes/LexLostSubmitApprovalController.cls
+++ b/force-app/main/default/classes/LexLostSubmitApprovalController.cls
@@ -6,12 +6,15 @@
InitData res = new initData();
try{
List<LostReport_Detail__c> reportDetail = new List<LostReport_Detail__c>();
- LostReport__c report = [SELECT Id,Status__c FROM LostReport__c WHERE Id = :recordId LIMIT 1];
- res.Id = report.Id;
- res.statusTf = report.Status__c;
- reportDetail = [SELECT Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c FROM LostReport_Detail__c WHERE id = :recordId AND Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c != null];
- res.reportDetailList = reportDetail;
- System.debug(LoggingLevel.INFO, '*** zq: ' + res);
+ List<LostReport__c> reportList = [SELECT Id,Status__c FROM LostReport__c WHERE Id = :recordId LIMIT 1];
+ if(reportList.size() > 0){
+ LostReport__c report = reportList[0];
+ res.Id = report.Id;
+ res.statusTf = report.Status__c;
+ reportDetail = [SELECT Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c FROM LostReport_Detail__c WHERE LostReport__c = :recordId AND Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c != null];
+ res.reportDetailList = reportDetail;
+ System.debug(LoggingLevel.INFO, '*** zq: ' + res);
+ }
}catch(Exception e){
System.debug(LoggingLevel.INFO, '*** zq: ' + e);
}
--
Gitblit v1.9.1