From a25138b23fdaa05197fb25fdbb3202f122235611 Mon Sep 17 00:00:00 2001 From: 游畅 <youchang@prec-tech.com> Date: 星期四, 28 四月 2022 16:22:34 +0800 Subject: [PATCH] 【委托】【优先】询问单相关修改 --- force-app/main/default/classes/StatusPageController.cls | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/classes/StatusPageController.cls b/force-app/main/default/classes/StatusPageController.cls index 8cf62b4..3c473c0 100644 --- a/force-app/main/default/classes/StatusPageController.cls +++ b/force-app/main/default/classes/StatusPageController.cls @@ -6,7 +6,7 @@ public void init(){ String infId = ApexPages.currentPage().getParameters().get('id'); - List<Inquiry_form__c> infList = [SELECT id,Reasons_options__c,Opp_Name_Search__c,Follow_Content__c,Follow_Content_Other__c,Status__c FROM Inquiry_form__c WHERE id = :infId]; + List<Inquiry_form__c> infList = [SELECT id,Reasons_options__c,Opp_Name_Search__c,Follow_Content__c,Follow_Content_Other__c,Status__c,Service_Follow_Content__c,Service_Follow_Content_Other__c,Service_Status__c FROM Inquiry_form__c WHERE id = :infId]; if (infList.size() == 0) { }else{ @@ -41,6 +41,15 @@ ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '璺熻繘鍐呭锛堝叾浠栵級涓嶈兘涓虹┖')); } // Date nowDT = Date.now(); + //20220418 you SWAG-CBUB2W start + if(String.isNotBlank(Inquiryform.Follow_Content__c) && Inquiryform.Follow_Content__c.indexOf('鏈嶅姟瀵瑰簲')!=-1){ + Inquiryform.ServiceCorrespond__c = true; + //Inquiryform.Service_Status__c = '01.鏈窡杩�'; 鏀惧埌trigger涓鐞嗭紝鍥犱负鍘熸湰瑕佹槸宸茶窡杩涘緱璇濆氨涓嶅姩 + }else{ + Inquiryform.ServiceCorrespond__c = false; + //Inquiryform.Service_Status__c = ''; + } + //20220418 you SWAG-CBUB2W end Inquiryform.Follow_Date__c = Date.toDay(); Inquiryform.Status__c = '03.宸茶窡杩�'; update Inquiryform; @@ -50,4 +59,27 @@ ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, ex.getMessage())); } } + //20220418 you SWAG-CBUB2W start + public void servicesavefo(){ + try { + if (String.isBlank(Inquiryform.Service_Follow_Content__c) && String.isBlank(Inquiryform.Service_Follow_Content_Other__c)) { + ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '鏈嶅姟璺熻繘鍐呭涓嶈兘涓虹┖')); + } + if (String.isBlank(Inquiryform.Service_Follow_Content__c)) { + ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '鏈嶅姟璺熻繘鍐呭涓嶈兘涓虹┖')); + } + if ('鍏朵粬'.equals(Inquiryform.Service_Follow_Content__c) && String.isBlank(Inquiryform.Service_Follow_Content_Other__c)) { + ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '鏈嶅姟璺熻繘鍐呭锛堝叾浠栵級涓嶈兘涓虹┖')); + } + // Date nowDT = Date.now(); + Inquiryform.Service_Follow_Date__c = Date.toDay(); + Inquiryform.Service_Status__c = '03.宸茶窡杩�'; + update Inquiryform; + } + catch (Exception ex) { + + ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, ex.getMessage())); + } + } + //20220418 you SWAG-CBUB2W end } \ No newline at end of file -- Gitblit v1.9.1