From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/TenderOpportunityLinkHandler.cls | 38 +++++++++++++++++++++++++-------------
1 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/force-app/main/default/classes/TenderOpportunityLinkHandler.cls b/force-app/main/default/classes/TenderOpportunityLinkHandler.cls
index c52d66e..197d4a5 100644
--- a/force-app/main/default/classes/TenderOpportunityLinkHandler.cls
+++ b/force-app/main/default/classes/TenderOpportunityLinkHandler.cls
@@ -351,27 +351,37 @@
}
}
if (null!=oppTens && oppTens.size()>0) {
+ //20221208 you DB202211594688 鏈夌‘璁や换鍔$殑璇环涓嶆竻绌轰腑鏍囦俊鎭� taskStatus__c <> '瀹屾垚'
List<Opportunity> opportunities = [select id, Bidding_Project_Name_Bid__c,Opp_Order__c from Opportunity where id in :oppIds];
- List<task__c> taskList = [select id,taskStatus__c,Tender_information_Task__c,OpportunityId__c from task__c where (RecordType.Name ='澶卞崟鎶ュ憡浠诲姟' and OpportunityId__c in:oppIds) or (RecordType.Name ='涓爣缁撴灉纭' and Opp_Tender__c in :oppTens)];
+ List<task__c> taskList = [select id,taskStatus__c,RecordType.Name,Tender_information_Task__c,OpportunityId__c from task__c where ((RecordType.Name ='澶卞崟鎶ュ憡浠诲姟' and OpportunityId__c in:oppIds) or (RecordType.Name ='涓爣缁撴灉纭' and Opp_Tender__c in :oppTens)) and taskStatus__c <> '03 瀹屾垚'];
for(task__c tsk : taskList){
- tsk.taskStatus__c = '04 鍙栨秷';
- tsk.cancelDate__c = date.today();
- tsk.cancelReasonSelect__c = '鍙栨秷璇环鍏宠仈';
+ if(tsk.RecordType.Name =='澶卞崟鎶ュ憡浠诲姟' && oppIds.contains(tsk.OpportunityId__c) && tsk.taskStatus__c !='03 瀹屾垚'){
+ //涓嶅仛鎿嶄綔
+ }else{
+ tsk.taskStatus__c = '04 鍙栨秷';
+ tsk.cancelDate__c = date.today();
+ tsk.cancelReasonSelect__c = '鍙栨秷璇环鍏宠仈';
+ }
+
}
update taskList;
if(taskList.size() > 0){
for (task__c tlink : taskList) {
for (Opportunity opp : opportunities) {
if (opp.Id == tlink.OpportunityId__c) {
- //20220718 you 璇环浠诲姟 start
- opp.ConfirmationofAward__c = null;
- opp.Task_createTime__c = null;
- opp.ConfirmationofAward_createTime__c =null;
- opp.LostTask_comfirmTime__c =null;
- opp.Is_ConfirmationofAward__c =null;
- opp.LostTask_createTime__c =null;
- opp.Closing_Bid_Date__c = null;
- //20220718 you 璇环浠诲姟 end
+ if(tlink.RecordType.Name =='澶卞崟鎶ュ憡浠诲姟' && tlink.taskStatus__c !='03 瀹屾垚'){
+ //涓嶅仛鎿嶄綔
+ }else{
+ //20220718 you 璇环浠诲姟 start
+ opp.ConfirmationofAward__c = null;
+ opp.Task_createTime__c = null;
+ opp.ConfirmationofAward_createTime__c =null;
+ opp.LostTask_comfirmTime__c =null;
+ opp.Is_ConfirmationofAward__c =null;
+ opp.LostTask_createTime__c =null;
+ //opp.Closing_Bid_Date__c = null;
+ //20220718 you 璇环浠诲姟 end
+ }
}
}
}
@@ -423,6 +433,7 @@
opp.Bidding_Project_Name_Bid__c = null;
//opp.TenderBeginDate_Text__c = null;
opp.InfoTypeBid_text__c = null;
+ /** 20221208 you DB202211594688 鏃犱换鍔¤浠凤紝涓嶆竻绌烘嫑鏍囦俊鎭�
//20220718 you 璇环浠诲姟 start
opp.ConfirmationofAward__c = null;
opp.Task_createTime__c = null;
@@ -431,6 +442,7 @@
opp.Is_ConfirmationofAward__c =null;
opp.Closing_Bid_Date__c = null;
//20220718 you 璇环浠诲姟 end
+ **/
// 20221028 ljh SWAG-CKL5UC start
opp.LeakageNumber__c = null;
// 20221028 ljh SWAG-CKL5UC end
--
Gitblit v1.9.1