| | |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | return e.getDmlMessage(0); |
| | | return e.getMessage(); |
| | | } |
| | | } |
| | | // 数据录入 |
| | |
| | | return objs; |
| | | }catch(exception e) { |
| | | Database.rollback(sp); |
| | | objs.put('error',e.getDmlMessage(0)); |
| | | objs.put('error',e.getMessage()); |
| | | return objs; |
| | | } |
| | | } |
| | |
| | | , ProductCategory__c |
| | | from Product2 where Id =:lostProduct]; |
| | | } catch (Exception e) { |
| | | return e.getDmlMessage(0); |
| | | return e.getMessage(); |
| | | } |
| | | return JSON.serialize(prd); |
| | | } |
| | |
| | | Approval.ProcessResult result = Approval.process(req); |
| | | return null; |
| | | } catch (Exception e) { |
| | | return e.getDmlMessage(0); |
| | | return e.getMessage(); |
| | | } |
| | | |
| | | } |
| | |
| | | ApprovalHistoryUtil.reassignStep(workItemList, newActorId); |
| | | return null; |
| | | } catch (Exception e) { |
| | | return e.getDmlMessage(0); |
| | | return e.getMessage(); |
| | | } |
| | | |
| | | } |