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