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();
|
}
|
|
}
|
}
|