19626
2023-10-23 1727a4f4d02e429475608e60f142a63bc24127bc
force-app/main/default/classes/lexSolutionProjectRequirementsController.cls
@@ -19,10 +19,10 @@
            res.departmentClassId = so.Department_Class__c;
            res.productLeader = so.Product_Leader__c;
            res.userId = UserInfo.getUserId();
            res.userName = UserInfo.getUserName();
            res.userName = [select Name from User where Id =: res.userId].Name;
            maps.put('res', res);
        } catch (Exception e) {
            String message = e.getMessage();
            String message = e.getDmlMessage(0);
            maps.put('error', message);
            return maps;
        }
@@ -41,7 +41,7 @@
            res.hospital = so.Hospital__c;
            res.departmentClass = so.Department_Class__c;
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }
@@ -59,7 +59,7 @@
            res.profileId = UserInfo.getProfileId();
            res.m2ProfileId = [select Id from Profile where Name =: lexLightingButtonConstant.M2_PROFILE_NAME].Id;
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }
@@ -76,7 +76,7 @@
            update so;
            return '';
        } catch (Exception e) {
            return e.getMessage();
            return e.getDmlMessage(0);
        }
    }
    @AuraEnabled
@@ -88,7 +88,7 @@
            update so;
            return '';
        } catch (Exception e) {
            return e.getMessage();
            return e.getDmlMessage(0);
        }
    }
@@ -104,7 +104,7 @@
            ];
            
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return accList;
    }
@@ -120,7 +120,7 @@
                from Solution_Programme__c where SolutionProjectRequirements__c =: recordId and Scheme_Type__c = '结案' 
            ];
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return so;
    }
@@ -133,11 +133,11 @@
                select id,name from solutionClosingAttachment__c where Solution_Programme__c =: solprogrammeId
            ];
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return so;
    }
    class InitData{
    public class InitData{
        @AuraEnabled
        public String status;
        @AuraEnabled