1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 FROM Consum_Apply__c WHERE Id = :recordId LIMIT 1];
        res.yiLoanerArranged = apply.Yi_loaner_arranged__c;
        return res;
 
    }
 
   
 
    public class InitDate{
 
        @AuraEnabled
        public String id;
 
        @AuraEnabled
        public Decimal yiLoanerArranged;
   
    }
}