From 25f056535350a0b80bad50d2cc45311998e5d1cd Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 09 十月 2023 18:28:00 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/classes/lexCaseController.cls | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/classes/lexCaseController.cls b/force-app/main/default/classes/lexCaseController.cls
index 3a5e0ac..67c6513 100644
--- a/force-app/main/default/classes/lexCaseController.cls
+++ b/force-app/main/default/classes/lexCaseController.cls
@@ -6,23 +6,28 @@
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());
+ System.debug(e.getMessage());
}
return res;
}
- class InitData{
+ public class InitData{
@AuraEnabled
public String department;
@AuraEnabled
public String accountId;
@AuraEnabled
public String recordTypeId;
+ @AuraEnabled
+ public String caseNumber;
}
}
\ No newline at end of file
--
Gitblit v1.9.1