游畅
2022-04-28 a25138b23fdaa05197fb25fdbb3202f122235611
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 根据简档显示任务提醒
   public Boolean isShowTask{get;set;}
   public String proId{get;set;}
   public taskAlertController() {
   }
   public PageReference init() {
      //2022-3-17 yjk 根据简档显示任务提醒
      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;
   }