From af908216bb0012fe849e3b49b3039c7ba238f8f0 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期五, 11 八月 2023 14:35:43 +0800
Subject: [PATCH] 补充controller,修改变量,主页bug修改

---
 force-app/main/default/classes/DealerVisitDetailsController.cls |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/force-app/main/default/classes/DealerVisitDetailsController.cls b/force-app/main/default/classes/DealerVisitDetailsController.cls
index 999487e..5975fb9 100644
--- a/force-app/main/default/classes/DealerVisitDetailsController.cls
+++ b/force-app/main/default/classes/DealerVisitDetailsController.cls
@@ -5,12 +5,12 @@
         ID myUserID = UserInfo.getUserId();
         try {
             User userinfo = [SELECT id,ProfileId FROM User WHERE Id = :myUserID LIMIT 1];
-            Account report = [SELECT Id,RecordTypeId,Department_Class_Label__c,Name,Hospital_Department_Class__c FROM Account WHERE Id = :recordId];
-            res.ProfileId = userinfo.ProfileId;
-            res.RecordTypeId = report.RecordTypeId;
-            res.DepartmentClassLabel = report.Department_Class_Label__c;
-            res.Name = report.Name;
-            res.HospitalDepartmentClass = report.Hospital_Department_Class__c;
+            Account report = [SELECT Id,RecordTypeId,Department_Class_Label__c,name,Hospital_Department_Class__c FROM Account WHERE Id = :recordId];
+            res.profileId = userinfo.ProfileId;
+            res.recordTypeId = report.recordTypeId;
+            res.departmentClassLabel = report.Department_Class_Label__c;
+            res.name = report.name;
+            res.hospitalDepartmentClass = report.Hospital_Department_Class__c;
         } catch (Exception e) {
             throw new AuraHandledException(e.getMessage());
         }
@@ -18,14 +18,14 @@
     }
     public class InitData{
         @AuraEnabled
-        public string ProfileId;
+        public string profileId;
         @AuraEnabled
-        public string RecordTypeId;
+        public string recordTypeId;
         @AuraEnabled
-        public string DepartmentClassLabel;
+        public string departmentClassLabel;
         @AuraEnabled
-        public string Name;
+        public string name;
         @AuraEnabled
-        public string HospitalDepartmentClass;
+        public string hospitalDepartmentClass;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1