From 9b197b7fac92278fb591ea8f4942c7d5687cb5ce Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 28 三月 2022 18:01:22 +0800
Subject: [PATCH] LJPH-C8FB4P【委托】配合PBI设备覆盖率的数据准备0328
---
force-app/main/default/classes/Consumable7daysBatch.cls | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/Consumable7daysBatch.cls b/force-app/main/default/classes/Consumable7daysBatch.cls
index 01af344..b122d1a 100644
--- a/force-app/main/default/classes/Consumable7daysBatch.cls
+++ b/force-app/main/default/classes/Consumable7daysBatch.cls
@@ -2,9 +2,16 @@
//缁熻鍙戣揣瓒呰繃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';
--
Gitblit v1.9.1