From a48ed9f335db52a433a2b343ff9636a28ee8a97f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 10 三月 2022 18:53:59 +0800
Subject: [PATCH] New xml file for PIPL20220310

---
 force-app/main/default/classes/StatusPageController.cls |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/force-app/main/default/classes/StatusPageController.cls b/force-app/main/default/classes/StatusPageController.cls
index 7508e54..8cf62b4 100644
--- a/force-app/main/default/classes/StatusPageController.cls
+++ b/force-app/main/default/classes/StatusPageController.cls
@@ -2,9 +2,6 @@
     public StatusPageController() {
         Inquiryform = new Inquiry_form__c();
     }
-    public String status{get;set;}
-    public String search{get;set;}
-    public String reason{get;set;}
     public Inquiry_form__c Inquiryform{get; set;}
 
     public void init(){
@@ -37,7 +34,14 @@
             if (String.isBlank(Inquiryform.Follow_Content__c) && String.isBlank(Inquiryform.Follow_Content_Other__c)) {
                 ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '璺熻繘鍐呭涓嶈兘涓虹┖'));
             }
-        
+            if (String.isBlank(Inquiryform.Follow_Content__c)) {
+                ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '璺熻繘鍐呭涓嶈兘涓虹┖'));
+            }
+            if ('鍏朵粬'.equals(Inquiryform.Follow_Content__c) && String.isBlank(Inquiryform.Follow_Content_Other__c)) {
+                ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '璺熻繘鍐呭锛堝叾浠栵級涓嶈兘涓虹┖'));
+            }
+            // Date nowDT = Date.now();
+            Inquiryform.Follow_Date__c = Date.toDay();
             Inquiryform.Status__c = '03.宸茶窡杩�';
             update Inquiryform;
         }

--
Gitblit v1.9.1