| | |
| | | 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 |
| | |
| | | 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); |
| | |
| | | ] : 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) { |
| | |
| | | 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; |
| | | |
| | |
| | | // 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; |
| | |
| | | } |
| | | // 再新增 |
| | | if (insert_list != null && insert_list.size() > 0) { |
| | | System.debug('insert_list is: '); |
| | | System.debug(insert_list); |
| | | insert insert_list; |
| | | } |
| | | } |