李彤
2022-05-12 a2f7f78e8b02e3613c9ff9cf584de2ec0bda075d
force-app/main/default/classes/NFM705Rest.cls
@@ -25,7 +25,7 @@
        public String Num; //会议编码 == Num__c
        public String StartDate; //开始日期 == StartDate
        public String EndDate; //结束日期 == EndDate
        public String BudgetType; //预算类型 == Budget_Type__c
        public String BudgetType; //预算类型 == Implementation_Purpose__c
        public String OfficeCategory; //科室分类 == OfficeCategory__c
        public String MeetingType; //会议类型 == Meeting_Type__c   
        public String StateMaster; //省 == State_Master__c
@@ -188,7 +188,9 @@
                    aca.Id = oldacfcMap.get(ged.MeetingApprovedNo).Id;
                    aca.Num__c = String.isBlank(aca.Num__c) ? oldacfcMap.get(ged.MeetingApprovedNo).Num__c : aca.Num__c; 
                } 
                NumList.add(aca.Num__c);
                if (String.isNotBlank(aca.Num__c)) {
                    NumList.add(aca.Num__c);
                }
                system.debug('NumList------------->'+NumList);
                // 确认申请人
                System.debug('aca.Id: ' + aca.Id);
@@ -214,7 +216,8 @@
                                        ] : new List<Campaign>();
            // 查找所有人
            if (user_nos != null && user_nos.size() > 0) {
                users = [select Id, Employee_No__c from User where Employee_No__c in :user_nos];
                // 2022-03-23 紧急修复 未启用的用户无法设置共享
                users = [select Id, Employee_No__c from User where Employee_No__c in :user_nos and IsActive = true];
                if (users != null && users.size() > 0) {
                    String owner = '';
                    for (Application_for_Conference_Adjudication__c app : acaList) {
@@ -266,7 +269,7 @@
                                if (app.MeetingType__c != '赞助会') {
                                    cam.StartDate                        = app.StartDate__c;
                                    cam.EndDate                          = app.EndDate__c;
                                    cam.Budget_Type__c                   = app.BudgetType__c;
                                    cam.Implementation_Purpose__c                   = app.BudgetType__c;
                                    cam.OfficeCategory__c                = app.OfficeCategory__c;
                                    cam.Meeting_Type__c                  = app.MeetingType__c;
    
@@ -428,7 +431,7 @@
    //     cam.Meeting_Approved_No__c           = app.Id;
    //     cam.StartDate                        = app.StartDate__c;
    //     cam.EndDate                          = app.EndDate__c;
    //     cam.Budget_Type__c                   = app.BudgetType__c;
    //     cam.Implementation_Purpose__c                   = app.BudgetType__c;
    //     cam.OfficeCategory__c                = app.OfficeCategory__c;
    //     cam.Meeting_Type__c                  = app.MeetingType__c;
    //     cam.Activity_Type_Name__c            = app.ActivityTypeName__c;
@@ -509,6 +512,8 @@
        }
        // 再新增
        if (insert_list != null && insert_list.size() > 0) {
            System.debug('insert_list is: ');
            System.debug(insert_list);
            insert insert_list;
        }
    }