| | |
| | | } |
| | | |
| | | 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]); |
| | | 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 |
| | | } |
| | | |
| | | 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); |
| | | //NFM624Rest.main(temp.id); |
| | | if(!Test.isRunningTest()) |
| | | NFMUtil.batchSendToAWS624(temp.id); //zhj 新方案改造 调用AWS的624接口 2022-01-06 |
| | | //updateprocessingList.add(temp); |
| | | } |
| | | } |