| | |
| | | global class EventToEventDetailsSchedule implements Schedulable { |
| | | global void execute(SchedulableContext sc) { |
| | | // 2021-03-09 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | //Id execBTId = Database.executeBatch(new EventToEventDetailsBatch(), 20); |
| | | Id execBTId = Database.executeBatch(new EventToEventDetailsBatch(true), 20); |
| | | // 2021-03-09 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | Id execBTId = Database.executeBatch(new EventToEventDetailsBatch(), 20); |
| | | |
| | | // List < String > accountIdList = new List<String>(); |
| | | // for (Asset acc :[SELECT Id,Hospital__c,Product2.ServiceCategory__c,Product2.Maintenance_Price_Year__c |
| | | // FROM Asset WHERE IF_Coverage_Target_Asset_F__c=1]) { |
| | | // if(!accountIdList.contains(acc.Hospital__c)){ |
| | | // accountIdList.add(acc.Hospital__c); |
| | | // } |
| | | // } |
| | | |
| | | // Id execBTId1 = Database.executebatch(new EquipmentRepairBatch(accountIdList),20); |
| | | Id execBTId1 = Database.executebatch(new EquipmentRepairBatch(),20); |
| | | |
| | | } |
| | | } |