From 26ad084e248b21ced76e6226ab2a32db53f582b9 Mon Sep 17 00:00:00 2001
From: twysparks <twysparks@163.com>
Date: 星期三, 26 四月 2023 13:37:50 +0800
Subject: [PATCH] tt
---
force-app/main/default/classes/otherButtonRepairController.cls | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/otherButtonRepairController.cls b/force-app/main/default/classes/otherButtonRepairController.cls
index 7e007a7..986cab3 100644
--- a/force-app/main/default/classes/otherButtonRepairController.cls
+++ b/force-app/main/default/classes/otherButtonRepairController.cls
@@ -141,7 +141,8 @@
// 鏍规嵁ID淇敼淇悊
@AuraEnabled
- public static void updateRepair(String recordId){
+ public static String updateRepair(String recordId){
+ String res;
try {
Repair__c repair = new Repair__c();
repair.Id = recordid;
@@ -149,8 +150,10 @@
update repair;
} catch (Exception e) {
System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ res=e.getMessage();
}
- }
+ return res;
+ }
// 淇敼楠屾敹鍗�
@AuraEnabled
--
Gitblit v1.9.1