From beaf695f5fe0b6c28950f78f7305c71eea44e56d Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期三, 17 五月 2023 16:12:30 +0800
Subject: [PATCH] Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev
---
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