binxie
2023-06-26 1b3fb93f787b8b546a307bf063183f5295d183f8
force-app/main/default/classes/OCSMHandler.cls
@@ -1,12 +1,15 @@
public with sharing class OCSMHandler extends Oly_TriggerHandler {
    //LY          2021/11/12                  start
    //平台窗口1、2、3任何一个有变更都会触发客户人员接口,向共通平台发送
   public static void OCSMToUser(List<OCM_Management_Province__c> newList, Map<Id, OCM_Management_Province__c> newMap, List<OCM_Management_Province__c> oldList, Map<Id, OCM_Management_Province__c> oldMap){
    public static void OCSMToUser(
        List<OCM_Management_Province__c> newList,
        Map<Id, OCM_Management_Province__c> newMap,
        List<OCM_Management_Province__c> oldList,
        Map<Id, OCM_Management_Province__c> oldMap
    ) {
        OCM_Management_Province__c old = null;
        List<String> noList = new List<String>();
        for (OCM_Management_Province__c local : newList) {
            if (Trigger.isInsert) {
                if (String.isNotBlank(local.OnlinePlatformWindow1__c)) {
                    noList.add(local.OnlinePlatformWindow1__c);
@@ -46,7 +49,6 @@
                    }
                }
            }
        }
        if (noList.size() > 0) {
            NFM621Controller.callout('',  noList);