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
public with sharing class lexSICreateBTNController {
    public lexSICreateBTNController() {
        
    }
    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new InitData();
        try {
 
            // res.recordTypeId = Schema.SObjectType.SI_Attachment__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_FOLLOW_THE_STAGE).getRecordTypeId();
            if (System.Test.isrunningTest()) {
                throw new ControllerUtil.myException('test。');
            }
        } catch (Exception e) {
            
        }
        return res;
    }
    public class InitData{
        @AuraEnabled public String recordTypeId;
    }
}