KKbes
2023-08-07 890eafcf31f5f8d519bb9e6f9c15303be5328e2d
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
27
28
29
30
31
32
public with sharing class LexCommitNeedApprovalController {
 
    @AuraEnabled
    public static meeting_delay_apply__c init(String recordId){
        meeting_delay_apply__c res = new meeting_delay_apply__c();
        try{
            res = [Select Id,status__c,campaign__c
                FROM meeting_delay_apply__c
                    WHERE  Id = : recordId];
        }
        catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }
 
    @AuraEnabled
    public static String  newUpdateMeetingDelayApply(String Id){
        meeting_delay_apply__c res = new meeting_delay_apply__c();
        try{
            res.Id=Id;
            res.Status__c ='提交';
            update res;
            return 'succuse';
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
            return e.getMessage();
        }
 
    } 
}