From 3b43925ca3211c861a2818a089907d34b5480aa5 Mon Sep 17 00:00:00 2001
From: 张宇恒 <bxyun0@163.com>
Date: 星期五, 06 五月 2022 10:41:15 +0800
Subject: [PATCH] 批量数据拆分处理
---
force-app/main/default/classes/taskAlertController.cls | 41 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/taskAlertController.cls b/force-app/main/default/classes/taskAlertController.cls
index a0b6606..5626c28 100644
--- a/force-app/main/default/classes/taskAlertController.cls
+++ b/force-app/main/default/classes/taskAlertController.cls
@@ -19,9 +19,25 @@
public Boolean isShowInquiry {get;set;}
public Integer InquiryNumber{ get; set; }
//2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end
+
+ //2022-4-19 yjk FSE鍏遍�氬钩鍙伴」鐩� start
+ public Integer InquiryNumberFSE{ get; set; }
+ //2022-4-19 yjk FSE鍏遍�氬钩鍙伴」鐩� end
+
+ //2022-3-17 yjk 鏍规嵁绠�妗f樉绀轰换鍔℃彁閱�
+ public Boolean isShowTask{get;set;}
+ public String proId{get;set;}
+
public taskAlertController() {
}
public PageReference init() {
+ //2022-3-17 yjk 鏍规嵁绠�妗f樉绀轰换鍔℃彁閱�
+ proId = UserInfo.getProfileId();
+ if(UserInfo.getProfileId() == System.Label.ProfileId_OBA1zbjd ){
+ isShowTask = false;
+ }else{
+ isShowTask = true;
+ }
Date today = Date.today();
Date firstDate = Date.newInstance(today.year(), today.month(), 1);
@@ -90,10 +106,29 @@
this.OppWithoutConformNumber = 0;
}
//2021-11-08 mzy SWAG-C8KCZZ end
- /*//2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 start
+ //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 start
+
+ //2022-4-19 yjk SWAG-CBUB2W start
+ List<String> profileIdList = new List<String>();
+ profileIdList.add(System.Label.ProfileId_2S1);
+ profileIdList.add(System.Label.ProfileIdN_2S1);
+ profileIdList.add(System.Label.ProfileId_2S4);
+ profileIdList.add(System.Label.ProfileId_2S4_Chief);
+ profileIdList.add(System.Label.ProfileId_2S5);
+ profileIdList.add(System.Label.ProfileId_2S6);
+ profileIdList.add(System.Label.ProfileId_2S8);
+ profileIdList.add(System.Label.ProfileId_2S10);
+
+ if( profileIdList.contains(UserInfo.getProfileId())){
+ //2022-4-22 yjk 淇敼鏌ヨ閫昏緫
+ List<Inquiry_form__c> InquiryNumberFSEList = [select id from Inquiry_form__c where Service_Status__c = '01.鏈窡杩�' and FSE_Owner__c =:UserInfo.getUserId()];
+ InquiryNumberFSE = InquiryNumberFSEList.size();
+ }
+
LeadIntentionController LeadIntController = new LeadIntentionController();
LeadIntController.init();
Integer pclCount = LeadIntController.pclCount;
+ system.debug('pclCount--------------------'+pclCount);
if(pclCount>0){
InquiryNumber = pclCount;
isShowInquiry = true;
@@ -101,7 +136,9 @@
isShowInquiry = false;
InquiryNumber = 0;
}
- //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end */
+
+ //2022-4-19 yjk SWAG-CBUB2W end
+ //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end
return null;
}
--
Gitblit v1.9.1