| | |
| | | // if (campaignMap.size() > 0) { |
| | | // update campaignMap.values(); |
| | | // } |
| | | List<Campaign> camNoList = [select id,Num__c,MeetingApprovedNo__c,Meeting_Approved_No__c, CampaignStatus__c |
| | | List<Campaign> camNoList = [select id,Num__c,MeetingApprovedNo__c,Meeting_Approved_No__c, Meeting_Approved_No__r.MeetingApprovedNo__c, CampaignStatus__c |
| | | from Campaign |
| | | where MeetingApprovedNo__c in: camList and CampaignStatus__c = '会议结束']; |
| | | where Meeting_Approved_No__r.MeetingApprovedNo__c in: camList and CampaignStatus__c = '会议结束']; |
| | | // System.debug(camNoList); |
| | | if (camNoList != null && camNoList.size() > 0) { |
| | | List<String> cam_ids = new List<String>(); |
| | | for(Campaign cam : camNoList) { |
| | | // System.debug('cam: ' + cam.Num__c + '|' + cam.Meeting_Approved_No__c + '|' + cam.Meeting_Approved_No__r.MeetingApprovedNo__c); |
| | | Application_for_Conference_Adjudication__c app = acaMap.get(cam.Meeting_Approved_No__r.MeetingApprovedNo__c); |
| | | // System.debug('app: ' + (app != null ? app.Id : 'null')); |
| | | cam_ids.add(cam.id); |
| | | for (Result_for_Conference_Adjudication__c rca : rcaList) { |
| | | if (cam.Meeting_Approved_No__c == rca.Application_for_Conference_Adjudication__c) { |
| | | // System.debug('rca: ' + rca.Application_for_Conference_Adjudication__c); |
| | | if (cam.Meeting_Approved_No__c == rca.Application_for_Conference_Adjudication__c || (app != null && app.Id == rca.Application_for_Conference_Adjudication__c)) { |
| | | // 更新会议日程 |
| | | cam.Meeting_Report__c = rca.Id; |
| | | cam.Society_Hold_Place__c = rca.SocietyHoldPlace__c; |