From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

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

diff --git a/force-app/main/default/classes/otherButtonSpotInspectionReportCtl.cls b/force-app/main/default/classes/otherButtonSpotInspectionReportCtl.cls
index 3cb0f27..cd124a1 100644
--- a/force-app/main/default/classes/otherButtonSpotInspectionReportCtl.cls
+++ b/force-app/main/default/classes/otherButtonSpotInspectionReportCtl.cls
@@ -7,10 +7,11 @@
     public static InitData init(String recordId){
         InitData res = new initData();
         try{
-            Inspection_Report__c report =  [SELECT Id,RecordTypeId FROM Inspection_Report__c WHERE Id =: recordId LIMIT 1];
+            Inspection_Report__c report =  [SELECT Id,RecordTypeId,RecordType.DeveloperName FROM Inspection_Report__c WHERE Id =: recordId LIMIT 1];
             System.debug(LoggingLevel.INFO, '*** opp: ' + report);
             res.Id = report.Id;
             res.RecordTypeId = report.RecordTypeId;
+            res.RecordType = report.RecordType.DeveloperName;
           
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         }catch(Exception e){
@@ -24,5 +25,7 @@
         public String Id;
         @AuraEnabled
         public String RecordTypeId;
+        @AuraEnabled
+        public String RecordType;
      }
 }
\ No newline at end of file

--
Gitblit v1.9.1