| | |
| | | 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); |
| | | } |