| | |
| | | *************************************************************************/ |
| | | @RestResource(urlMapping = '/NFM623/*') |
| | | global with sharing class NFM623Rest { |
| | | //add to AWS 回复 start sushanhu 20220225 |
| | | static Boolean SFStatus=true; |
| | | static String SFMessage=''; |
| | | //add to AWS 回复 end sushanhu 20220225 |
| | | //新增NFM623Rest 学会·活动参加人员接收数据接口 精琢技术 start |
| | | |
| | | global class GeDatas { |
| | |
| | | global class GeData { |
| | | public String Num; // 活动编码 |
| | | public String Name; // 活动名称 |
| | | public ViewContactIdS[] ViewContactIdS; |
| | | public ViewContactIdS[] ViewContactIdS; //替换为aws存储凭据ID 20220225 sushanhu |
| | | public LabelTypeS[] LabelTypeS; |
| | | } |
| | | |
| | |
| | | RestResponse res = RestContext.response; |
| | | res.addHeader('Content-Type', 'application/json'); |
| | | res.statusCode = 200; |
| | | String jsonResponse = '{"status": "Success", "Message":""}'; |
| | | // String jsonResponse = '{"status": "Success", "Message":""}'; |
| | | // res.responseBody = blob.valueOf(jsonResponse); |
| | | //updata response toAWS 20220225 sushanhu start |
| | | NFMUtil.NFMResponse result = NFMUtil.getNFMResponse(); |
| | | result.SFStatus=SFStatus; |
| | | result.SFMessage=SFMessage; |
| | | String jsonResponse =JSON.serialize(result); |
| | | system.debug('result---'+jsonResponse); |
| | | res.responseBody = blob.valueOf(jsonResponse); |
| | | //updata response toAWS 20220225 sushanhu end |
| | | return; |
| | | } |
| | | |
| | |
| | | conIDList.add(conInfo.Id); |
| | | } |
| | | } |
| | | //update to 通过aws存储的unified查询 start 20220225 |
| | | // List<Contact> contactList = [select Id,Name,AWS_UnifiedI_Contact_ID__c, |
| | | // AccountId,Account.Name |
| | | // from Contact where AWS_UnifiedI_Contact_ID__c in :conIDListNew]; |
| | | // if (contactList.size() > 0) { |
| | | // //客户人员ID获取成功 |
| | | // for (Contact conInfo : contactList) { |
| | | // contactMap.put(conInfo.AWS_UnifiedI_Contact_ID__c, conInfo); |
| | | // conIDList.add(conInfo.Id); |
| | | // } |
| | | // } |
| | | //update to 通过aws存储的unified查询 20220225 end |
| | | } |
| | | //使用市场活动编码获取市场活动ID和活动名称存入Map |
| | | List<String> camIDList = new List<String>(); |
| | |
| | | } |
| | | } |
| | | |
| | | //update to 获取aws 统一凭据关联 sushanhu 20220225 satrt |
| | | // List<CampaignMember__c> camMemberList = [select Id,Contact_ID__c,AWS_ViewContact_Id__c, |
| | | // Campaign__c,Campaign__r.Num__c |
| | | // from CampaignMember__c where Campaign__c in : camIDList]; |
| | | // Map<String, String> camContactMap = new Map<String, String>(); |
| | | // Map<String, String> camViewContactMap = new Map<String, String>(); |
| | | // if (camMemberList.size() > 0 ) { |
| | | // for (CampaignMember__c cm : camMemberList) { |
| | | // camContactMap.put(cm.Contact_ID__c, cm.Campaign__r.Num__c); |
| | | // camViewContactMap.put(cm.AWS_ViewContact_Id__c, cm.Campaign__r.Num__c); |
| | | // } |
| | | // } |
| | | //update to 获取aws 统一凭据关联 sushanhu 20220225 end |
| | | //将原有活动标签对象中市场活动ID和标签活动名称存入Map中 |
| | | List<CampaignLable__c> camLabInfoList = [select id,name,Campaign__c,Lable__c,LableType__c from CampaignLable__c where Campaign__c in : camIDList]; |
| | | Map<String, String> camLabInfoMap = new Map<String, String>(); |