public without sharing class LexConsumableAccountInfoController { //初始化 @AuraEnabled public static ResponseBodyLWC init(String accId) { ResponseBodyLWC res = new ResponseBodyLWC(); Map data = new Map(); res.entity = data; Account obj = new Account(); if (accId != null) { List accList = [ SELECT Id, Name, Owner.Name, Site, Alias_Name2__c, Grade__c, OCM_Category__c, Is_Active__c, Ban_On_Use_Reason__c, Attribute_Type__c, Speciality_Type__c, State_Master__r.Name, City_Master__r.Name, Town__c, Street__c, Address_Together__c, Phone, PhoneCall__c, Fax, Postal_Code__c, Parent.Name, Address__c FROM Account WHERE Id = :accId ]; if (accList != null && accList.size() > 0) { obj = accList.get(0); } }else { return new ResponseBodyLWC('Error', 500, 'accId为空', ''); } data.put('obj', obj); res.status = 'Success'; res.code = 200; res.msg = ''; return res; } }