| | |
| | | } |
| | | } |
| | | // OCM_Category__cについて病院しかつかってないため、診療科より変更はありえない |
| | | if (Trigger.oldMap.get(a.Id).get('OCM_Category__c') != a.OCM_Category__c && needSendRectMap.get(a.RecordTypeId) == '病院' && isChanged == false) { |
| | | if (null!=a.OCSMField2__c||(Trigger.oldMap.get(a.Id).get('OCM_Category__c') != a.OCM_Category__c && needSendRectMap.get(a.RecordTypeId) == '病院' && isChanged == false)) { |
| | | isChanged = true; |
| | | NFM001Controller.debug_msg = 'OCM_Category__c'; |
| | | needChild = true; |
| | |
| | | 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(); |
| | |
| | | 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; |