global class NFM624Batch implements Database.Batchable<sObject>, Database.AllowsCallouts {
    public String query;
    List<BatchIF_Log__c> updateprocessingList = new List<BatchIF_Log__c>();

    global NFM624Batch() {
        this.query = query;
    }

    global Database.QueryLocator start(Database.BatchableContext bc) {
        return Database.getQueryLocator([select Id,	NFM624_Secondary_processing__c from BatchIF_Log__c where NFM624_Secondary_processing__c = false AND Type__C = 'NFM624' AND RowDataFlg__c = true AND retry_cnt__c < 3 AND Is_Error__c != 1]);
        //return Database.getQueryLocator([select Id,	NFM624_Secondary_processing__c from BatchIF_Log__c where NFM624_Secondary_processing__c = false AND Type__C = 'NFM624' AND RowDataFlg__c = true AND retry_cnt__c < 3 AND Is_Error__c != 1 and id ='a0cC6000000XhbBIAS']);
        //return Database.getQueryLocator([select Id,	NFM624_Secondary_processing__c from BatchIF_Log__c where NFM624_Secondary_processing__c = false AND Type__C = 'NFM624Rest2' AND RowDataFlg__c = true AND retry_cnt__c < 3 AND Is_Error__c != 1]);   //zhj 新方案改造 NFM624Rest2 2023-01-06//PIPL还原 tiger 20231031
    }

    global void execute(Database.BatchableContext BC, list<BatchIF_Log__c> scope) {
       
        for(BatchIF_Log__c temp :scope){
            //temp.NFM624_Secondary_processing__c = false;
            NFM624Rest.main(temp.id);
            //if(!Test.isRunningTest())                         
                //NFMUtil.batchSendToAWS624(temp.id);             //zhj 新方案改造 调用AWS的624接口 2022-01-06 //PIPL还原 tiger 20231031 end
                
      
            //updateprocessingList.add(temp);
        }
    }

    global void finish(Database.BatchableContext BC) {
        // if(updateprocessingList.size()>0){
        //     update updateprocessingList;
        // }
    }
   
}