| | |
| | | } |
| | | // 执行靶器 |
| | | global AccAssumeChangeBatch() { |
| | | |
| | | |
| | | } |
| | | // test |
| | | |
| | | global Database.QueryLocator start(Database.BatchableContext bc) { |
| | | // 检索医院(用来对应其关联的招投标) |
| | | String query = 'Select Id, Assume_Change__c FROM Account '; |
| | |
| | | if (HospitalIdList.size() > 0) { |
| | | query += ' And Id in : HospitalIdList'; |
| | | } |
| | | |
| | | return Database.getQueryLocator(query); |
| | | } |
| | | |
| | | |
| | | global void execute(Database.BatchableContext BC, list<Account> HosinfoList) { |
| | | List<Tender_information__c> TenInfoList = [Select Id, Hospital__c, Hospital1__c, Hospital2__c, Hospital3__c, |