| | |
| | | //统计发货超过7天未收货 |
| | | public String query; |
| | | |
| | | public Consumable7daysBatch() { |
| | | this.query = query;//select id from Consumable_order_details2__c where Dealer_Arrive__c = false AND Dealer_Shipment__c = false AND Dealer_Saled__c = false |
| | | Boolean IsNeedExecute = false; |
| | | global Consumable7daysBatch() { |
| | | } |
| | | global Consumable7daysBatch(Boolean NeedExecute) { |
| | | this.IsNeedExecute = NeedExecute; |
| | | } |
| | | |
| | | // public Consumable7daysBatch() { |
| | | // this.query = query;//select id from Consumable_order_details2__c where Dealer_Arrive__c = false AND Dealer_Shipment__c = false AND Dealer_Saled__c = false |
| | | // } |
| | | global Database.QueryLocator start(Database.BatchableContext bc) { |
| | | system.debug('start方法开始=================>'); |
| | | // query = 'Select Consumable_order_minor__c,id from Consumable_order_details2__c WHERE Consumable_order_minor__c != null AND Dealer_Shipment__c = false AND Dealer_Arrive__c = false AND Dealer_Saled__c = false AND Deliver_date__c < LAST_N_DAYS:7 ORDER BY Consumable_order_minor__c'; |