111
沙世明
2022-11-22 928399eceec50e3d37ea08669a12789a9410a9d2
force-app/main/default/triggers/NFM001.trigger
@@ -296,8 +296,14 @@
        insert iflog;
        iflog = [Select Id, Name from BatchIF_Log__c where Id = :iflog.Id];
        System.debug(Logginglevel.DEBUG, 'NFM001_' + iflog.Name + ' start');                  // callout の中 end のlogを出します
        NFM001Controller.callout(iflog.Id, accIds, purposeOfAdviceMap, needSendRectMap);
        //NFM624触发001和201接口 20221102 LY start
        //NFM001Controller.callout(iflog.Id, accIds, purposeOfAdviceMap, needSendRectMap);
        if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){
            NFM001Controller.calloutNotFuture(iflog.Id, accIds, purposeOfAdviceMap, needSendRectMap);
        } else {
            NFM001Controller.callout(iflog.Id, accIds, purposeOfAdviceMap, needSendRectMap);
        }
        //NFM624触发001和201接口 20221102 LY end
        // LHJ 向SPO传NFM201 Start
        NFM201Controller.debug_msg = accIds.size() + ',' + NFM201Controller.debug_msg;
        BatchIF_Log__c iflog201 = new BatchIF_Log__c();
@@ -308,7 +314,14 @@
        System.debug(Logginglevel.DEBUG, 'NFM201_' + iflog201.Name + ' start');                  // callout の中 end のlogを出します
        //NFM201Controller.callout(iflog201.Id, accIds, purposeOfAdviceMap, needSendRectMap);
        if(!System.Test.isRunningTest()){
        NFM201Controller.callout(iflog201.Id, accIds, purposeOfAdviceMap, needSendRectMap, needQuolifiedMap);
            //NFM624触发001和201接口 20221102 LY start
            //NFM201Controller.callout(iflog201.Id, accIds, purposeOfAdviceMap, needSendRectMap, needQuolifiedMap);
            if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){
                NFM201Controller.calloutNotFuture(iflog201.Id, accIds, purposeOfAdviceMap, needSendRectMap, needQuolifiedMap);
            } else {
                NFM201Controller.callout(iflog201.Id, accIds, purposeOfAdviceMap, needSendRectMap, needQuolifiedMap);
            }
            //NFM624触发001和201接口 20221102 LY end
        }
        // LHJ End
        //NFM201Controller.debug_msg = accIds.size() + ',' + NFM201Controller.debug_msg;