liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
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
33
34
35
36
37
38
39
40
41
42
public with sharing class LexMeetingCostsController {
    
    @AuraEnabled
    public static Campaign  init(String recordId){
        Campaign res = new Campaign();
        try{
                res=[SELECT Id,OwnerId,JingliApprovalManager__c,BuchangApprovalManager__c,
                ZongjianApprovalManager__c,Sponsor_Ones_Post__c   FROM  Campaign  WHERE Id = : recordId ];
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }
 
 
 
    @AuraEnabled
    public static groupmember  judgeMumber(String UserId){
        groupmember res =new groupmember();
        try{
            res=[SELECT Id FROM groupmember WHERE 
            group.developername = 'X00_Meetingfee_Huabei' and userorgroupid = :UserId];
        }
        catch (Exception e) {
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }
 
     @AuraEnabled
    public static String  getProfileIdByName(String Name){
        Profile profile = null;
        try {
            profile = [select Id from Profile where Name =:name];
            return profile.Id;
        } catch (Exception e) {
            return e.getMessage();
        }
 
    }
}