KKbes
2023-08-07 492f744d9d84289e27b2ddac9a9b4a2137fd11d6
force-app/main/default/classes/lexSubAuthorizedButtonController.cls
@@ -15,15 +15,17 @@
    }
    @AuraEnabled
    public static void updateStatuById(String Id){
    public static String updateStatuById(String Id){
        try{
            SubAuthorized__c res = new SubAuthorized__c();
            res.Id = Id;
            res.Status__c = '已取消';
            update res;
            return 'success';
        }
        catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
            return e.getMessage();
        }
    }
}