黄千龙
2023-02-02 cd730d0b1a775abacfba06003bb58327d5d1fb3c
force-app/main/default/classes/NFM402Batch.cls
@@ -1,11 +1,8 @@
global class NFM402Batch implements Database.Batchable<sObject>, Database.AllowsCallouts {
    public String query;
    // public BatchIF_Log__c iflog;
    global NFM402Batch() {
        this.query = query;
        // iflog = new BatchIF_Log__c();
        // iflog.Type__c = 'NFM402Batch';
    }
    global Database.QueryLocator start(Database.BatchableContext bc) {
@@ -32,7 +29,6 @@
        for (String id : tempids ) {
            ids.add(id);
        }
        // iflog.Log__c = 'ids '+ids;
        try {
            if (ids.size()>0) {         
@@ -40,11 +36,8 @@
            }
        }
        catch (Exception e) {
            // iflog.Log__c += 'e:: '+e.getMessage();
            // iflog.Log__c += 'e:getCause: '+e.getCause();
            System.debug(e.getStackTraceString());
        }
        // insert iflog;
        
    }