public with sharing class ConsumApplyEquipmentSetDefaultController { @AuraEnabled public static InitDate defaultSelect(String recordId) { InitDate res = new InitDate(); Consum_Apply__c apply = [SELECT Id, Yi_loaner_arranged__c, AccDealerBlacklist__c, AccDealerBlacklist2__c FROM Consum_Apply__c WHERE Id = :recordId LIMIT 1]; //20240121 sx 贸易合规二期add res.yiLoanerArranged = apply.Yi_loaner_arranged__c; res.accDealerBlacklistc = apply.AccDealerBlacklist__c; res.tradeComplianceStatusFlagBP = System.Label.TradeComplianceStatusFlagBP; res.iFTradeComplianceAlertBP = System.Label.IFTradeComplianceAlertBP; res.accDealerBlacklistc2 = apply.AccDealerBlacklist2__c; //20240121 sx 贸易合规二期add return res; } public class InitDate{ @AuraEnabled public String id; @AuraEnabled public Decimal yiLoanerArranged; @AuraEnabled public String accDealerBlacklistc;//客户是否为黑名单 @AuraEnabled public String tradeComplianceStatusFlagBP;//贸易合规开关 @AuraEnabled public String iFTradeComplianceAlertBP;//贸易合规提醒 @AuraEnabled public String accDealerBlacklistc2; //20240121 sx 贸易合规二期add } }