沙世明
2022-03-12 dd8e060cdda745dadd2b5160d3b10f55379293c6
url传值的地方,新字段需要区分测试和生产
1个文件已修改
14 ■■■■ 已修改文件
force-app/main/default/classes/CampaignCreateController.cls 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/CampaignCreateController.cls
@@ -106,9 +106,9 @@
            system.debug('123321+++++++===='+AdjudicationDataobj.cam.IF_Approved__c);
            if(AdjudicationDataobj.cam != null){ 
                if(AdjudicationDataobj.cam.IF_Approved__c || String.isNotBlank(AdjudicationDataobj.cam.Meeting_Approved_No__c)){
                    url += '&00N1m000005tHDi=1';
                    url += NFMUtil.isSandbox() ? '&00N1m000005tHDi=1' : '&00N10000009HBVs=1';
                }else{
                    url += '&00N1m000005tHDi=0';
                    url += NFMUtil.isSandbox() ? '&00N1m000005tHDi=0' : '&00N10000009HBVs=0';
                }
            }
            if(AdjudicationDataobj.cam != null && String.isNotBlank(AdjudicationDataobj.cam.Meeting_Approved_No__c)){
@@ -148,20 +148,20 @@
                    url += '&00N10000008ptmP=' + mam.ConveningParticipantsNum__c;
                }
                if(String.isNotBlank(String.valueOf(mam.ExpectedOlympusAttendance__c))){
                    url += '&00N1m00000652oO=' + mam.ExpectedOlympusAttendance__c;
                    url += (NFMUtil.isSandbox() ? '&00N1m00000652oO=' : '&00N10000009HBYD=') + mam.ExpectedOlympusAttendance__c;
                }
                //预计参会HCP人数、赞助类别、赞助款项是否支付给主办方、活动形式
                if(String.isNotBlank(String.valueOf(mam.ExpectedHcpAttendance__c))){
                    url += '&00N1m00000652oT=' + mam.ExpectedHcpAttendance__c;
                    url += (NFMUtil.isSandbox() ? '&00N1m00000652oT=' : '&00N10000009HBY8=') + mam.ExpectedHcpAttendance__c;
                }
                if(String.isNotBlank(mam.SponsorshipCategory__c)){
                    url += '&00N1m000006fdGn=' + mam.SponsorshipCategory__c;
                    url += (NFMUtil.isSandbox() ? '&00N1m000006fdGn=' : '&00N10000009HBYI=') + mam.SponsorshipCategory__c;
                }
                if(String.isNotBlank(mam.IsPaidToSponsor__c)){
                    url += '&00N1m000006fcjJ=' + mam.IsPaidToSponsor__c;
                    url += (NFMUtil.isSandbox() ? '&00N1m000006fcjJ=' : '&00N10000009HBYN=') + mam.IsPaidToSponsor__c;
                }
                if(String.isNotBlank(mam.Type_of_adjudication_meeting__c)){
                    url += '&00N1m00000652jY=' + mam.Type_of_adjudication_meeting__c;
                    url += (NFMUtil.isSandbox() ? '&00N1m00000652jY=' : '&00N10000009HBY3=') + mam.Type_of_adjudication_meeting__c;
                }
            }
        // }