From fa01cf80171eb10c7f1b4f1764376397b714c526 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期二, 28 三月 2023 15:22:55 +0800
Subject: [PATCH] ET产品-效期修改
---
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