From fd9df05c48c09b4d7f39a3b401882bda226dedea Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 31 十月 2023 20:38:18 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/classes/lexPCLLostReportLwcController.cls | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/force-app/main/default/classes/lexPCLLostReportLwcController.cls b/force-app/main/default/classes/lexPCLLostReportLwcController.cls
index 082f4f8..0f381d3 100644
--- a/force-app/main/default/classes/lexPCLLostReportLwcController.cls
+++ b/force-app/main/default/classes/lexPCLLostReportLwcController.cls
@@ -377,7 +377,7 @@
}
} catch (Exception e) {
- return e.getDmlMessage(0);
+ return e.getMessage();
}
}
// 鏁版嵁褰曞叆
@@ -610,7 +610,7 @@
return objs;
}catch(exception e) {
Database.rollback(sp);
- objs.put('error',e.getDmlMessage(0));
+ objs.put('error',e.getMessage());
return objs;
}
}
@@ -740,7 +740,7 @@
, ProductCategory__c
from Product2 where Id =:lostProduct];
} catch (Exception e) {
- return e.getDmlMessage(0);
+ return e.getMessage();
}
return JSON.serialize(prd);
}
@@ -764,7 +764,7 @@
Approval.ProcessResult result = Approval.process(req);
return null;
} catch (Exception e) {
- return e.getDmlMessage(0);
+ return e.getMessage();
}
}
@@ -776,7 +776,7 @@
ApprovalHistoryUtil.reassignStep(workItemList, newActorId);
return null;
} catch (Exception e) {
- return e.getDmlMessage(0);
+ return e.getMessage();
}
}
--
Gitblit v1.9.1