1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
public with sharing class ConsumApplyEquipmentSetReaController {
 
    
 
    @AuraEnabled
    public static InitDate reassign(String recordId) {
        InitDate res = new InitDate();
        Consum_Apply__c apply = [SELECT Id,
                                    Status__c FROM Consum_Apply__c WHERE Id = :recordId LIMIT 1];
        res.status = apply.Status__c;
        return res;
 
    }
 
   
 
    public class InitDate{
 
        @AuraEnabled
        public String id;
 
        @AuraEnabled
        public String status;
   
    }
}