From 1312ba82d4c880bdb5357d28e0d4af5b285f610f Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期四, 10 三月 2022 15:54:39 +0800
Subject: [PATCH] 最近一月修改内容

---
 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