19626
2023-10-23 1727a4f4d02e429475608e60f142a63bc24127bc
force-app/main/default/classes/lexSolutionProgrammeController.cls
@@ -12,7 +12,7 @@
            res.schemeType = so.Scheme_Type__c;
            res.confirmationResult = so.Confirmation_Result__c;
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(e.getMessage());
        }
        return res;
    }
@@ -22,7 +22,7 @@
        try {
            so = [select id,name from solutionClosingAttachment__c where Solution_Programme__c =: Id];
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(e.getMessage());
        }
        return so;
    }
@@ -36,10 +36,25 @@
            update so;
            return '';
        } catch (Exception e) {
            return e.getMessage();
            return e.getDmlMessage(0);
        }
    }
    class InitData{
    //提交审批
    @AuraEnabled
    public static String submitApproval(String recordId){
        Savepoint sp = Database.setSavepoint();
        try {
            Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
            req1.setObjectId(recordId);
            Approval.ProcessResult submitResult = Approval.process(req1);
            return 'OK';
        }
        catch (Exception e) {
            Database.rollback(sp);
            return e.getDmlMessage(0);
        }
    }
    public class InitData{
        @AuraEnabled
        public String schemeType;
        @AuraEnabled