| | |
| | | String res=''; |
| | | try { |
| | | Repair__c repair = new Repair__c(); |
| | | repair.ID = recordId; |
| | | repair.Id = recordId; |
| | | repair.Maintenance_Contract__c = null; |
| | | repair.MaintenanceContractType__c = null; |
| | | update repair; |
| | |
| | | //更新Repair__c中的记录,若捕获到异常则返回错误信息 |
| | | @AuraEnabled |
| | | public static String updateRepair2(String recordId,User staff,Boolean DWSign,String statusc,String DOJStatus,String SAPcondition){ |
| | | String res=''; |
| | | try { |
| | | Repair__c repair = new Repair__c(); |
| | | repair.Id = recordId; |
| | |
| | | repair.SAP_Transfer_time__c = Datetime.now(); |
| | | } |
| | | update repair; |
| | | return null; |
| | | } catch (Exception e) { |
| | | String eMessage = e.getMessage(); |
| | | Integer left = eMessage.indexOf(',') + 1; |
| | | Integer right = eMessage.length(); |
| | | return eMessage.substring(left,right); |
| | | res = e.getMessage(); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | // 查找简档 |