public with sharing class lexConsumablesLostController { // 耗材备品申请 取消 @AuraEnabled public static InitData lexConsumablesLostController(String recordId) { InitData res = new initData(); try{ Consum_Apply__c report = [SELECT Id,Status__c,RA_Status__c,Yi_loaner_arranged__c FROM Consum_Apply__c WHERE Id = :recordId LIMIT 1]; res.Id = report.Id; res.statusTf = report.Status__c; res.raStatusTf = report.RA_Status__c; res.yiLoanerArr = report.Yi_loaner_arranged__c; System.debug(LoggingLevel.INFO, '*** zq: ' + res); }catch(Exception e){ System.debug(LoggingLevel.INFO, '*** zq: ' + e); } return res; } public class InitData{ @AuraEnabled public String Id; @AuraEnabled public String statusTf; @AuraEnabled public String raStatusTf; @AuraEnabled public Decimal yiLoanerArr; } }