From cd730d0b1a775abacfba06003bb58327d5d1fb3c Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 02 二月 2023 12:23:31 +0800
Subject: [PATCH] 同步数据
---
force-app/main/default/classes/Opportunity_Shipments_ForecastBatch.cls | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/Opportunity_Shipments_ForecastBatch.cls b/force-app/main/default/classes/Opportunity_Shipments_ForecastBatch.cls
index 0f80904..ce7cb71 100644
--- a/force-app/main/default/classes/Opportunity_Shipments_ForecastBatch.cls
+++ b/force-app/main/default/classes/Opportunity_Shipments_ForecastBatch.cls
@@ -47,6 +47,10 @@
query += ' and Sales_Root__c != \'\'';
//20190107 --------addEnd---------
query += ' and Salesdepartment_Owner__c != \'澶栫浜嬩笟鏈儴\'';
+ // 20220928 ljh SWAG-CJMCZ4 start
+ query += ' and (ConfirmationofAward__c != \'绔炰簤瀵规墜涓爣\'';
+ query += ' OR (ConfirmationofAward__c = \'绔炰簤瀵规墜涓爣\' and Competitor__c != \'A1\' and Competitor__c != \'A\'))';
+ // 20220928 ljh SWAG-CJMCZ4 end
System.debug('+++11111111--query--111111111111+++++' + query);
return Database.getQueryLocator(query);
@@ -61,6 +65,10 @@
query += ' and StageName__c != \'澶卞崟\'';
query += ' and Sales_Root__c != \'\'';
query += ' and Salesdepartment_Owner__c != \'澶栫浜嬩笟鏈儴\'';
+ // 20220928 ljh SWAG-CJMCZ4 start
+ query += ' and (ConfirmationofAward__c != \'绔炰簤瀵规墜涓爣\'';
+ query += ' OR (ConfirmationofAward__c = \'绔炰簤瀵规墜涓爣\' AND Competitor__c != \'A1\' and Competitor__c != \'A\'))';
+ // 20220928 ljh SWAG-CJMCZ4 end
System.debug('+++11111111--姝e父Batch鎵цquery--111111111111+++++' + query);
return Database.getQueryLocator(query);
--
Gitblit v1.9.1