From e14d6d0619330cad423f06493e3aa2371faa2a8f Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期六, 09 九月 2023 14:02:23 +0800
Subject: [PATCH] Sit期间修改
---
force-app/main/default/classes/lexCaseController.cls | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/lexCaseController.cls b/force-app/main/default/classes/lexCaseController.cls
index 3a5e0ac..a3a7c50 100644
--- a/force-app/main/default/classes/lexCaseController.cls
+++ b/force-app/main/default/classes/lexCaseController.cls
@@ -6,12 +6,15 @@
Case ca = [
select
Department__c,
- Account__c
+ Account__c,
+ CICName__c
from Case where Id =: recordId
];
res.department = ca.Department__c;
res.accountId = ca.Account__c;
- res.recordTypeId = Schema.SObjectType.Case.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_VOC).getRecordTypeId();
+ res.caseNumber = ca.CICName__c;
+ res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_VOC).getRecordTypeId();
+ // res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().toString();
} catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
@@ -24,5 +27,7 @@
public String accountId;
@AuraEnabled
public String recordTypeId;
+ @AuraEnabled
+ public String caseNumber;
}
}
\ No newline at end of file
--
Gitblit v1.9.1