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,14 +36,7 @@
            update so;
            return '';
        } catch (Exception e) {
            if(e.getMessage().contains(':')){
                String eMsg = e.getMessage();
                Integer left = eMsg.indexOf(',')+1;
                Integer right = eMsg.lastindexOf('。')+1;
                return eMsg.substring(left,right);
            }else{
                return e.getMessage();
            }
            return e.getDmlMessage(0);
        }
    }
    //提交审批
@@ -58,17 +51,10 @@
        }
        catch (Exception e) {
            Database.rollback(sp);
            if(e.getMessage().contains(':')){
                String eMsg = e.getMessage();
                Integer left = eMsg.indexOf(',')+1;
                Integer right = eMsg.lastindexOf('。')+1;
                return eMsg.substring(left,right);
            }else{
                return e.getMessage();
            }
            return e.getDmlMessage(0);
        }
    }
    class InitData{
    public class InitData{
        @AuraEnabled
        public String schemeType;
        @AuraEnabled