public class ScheduleUrlHardCodeProcessing implements Schedulable {
|
public void execute(SchedulableContext sc) {
|
//报价委托功能
|
String quoteQuery = 'SELECT Id, Note__c FROM QuoteIrai__c WHERE (NOT Note__c LIKE \'%olympus.my.sfcrmproducts.cn%\') AND Note__c like \'%https%\'';
|
BatchUrlHardCodeProcessing bcQuote = new BatchUrlHardCodeProcessing(quoteQuery);
|
database.executeBatch(bcQuote, 200);
|
//备品借出申请
|
String rentalQuery = 'SELECT Id, Response__c FROM Rental_Apply__c';
|
BatchUrlHardCodeProcessing bcRental = new BatchUrlHardCodeProcessing(rentalQuery);
|
database.executeBatch(bcRental, 200);
|
//任务
|
String taskQuery = 'SELECT Id, Description FROM Task';
|
BatchUrlHardCodeProcessing bcTask = new BatchUrlHardCodeProcessing(taskQuery);
|
database.executeBatch(bcTask, 200);
|
//耗材备品申请
|
String consumQuery = 'SELECT Id, Response__c FROM Consum_Apply__c';
|
BatchUrlHardCodeProcessing bcConsum = new BatchUrlHardCodeProcessing(consumQuery);
|
database.executeBatch(bcConsum, 200);
|
}
|
|
}
|