|
@@ -7536,12 +7536,16 @@ public class WorkProjectNotifyController extends BaseController {
|
|
|
}
|
|
|
//如果该通知所对应的某记录已经被删除,在获取记录时会空指针
|
|
|
catch (Exception e) {
|
|
|
+ String strTemp=e.getStackTrace().toString();
|
|
|
+ StackTraceElement stackTraceElement= e.getStackTrace()[0];
|
|
|
+
|
|
|
if("待审批".equals(workProjectNotify.getRemarks())){
|
|
|
WorkProjectNotifyRecover workProjectNotifyRecover = new WorkProjectNotifyRecover();
|
|
|
try {
|
|
|
//将报错信息保存到待办报错库表中
|
|
|
MyBeanUtils.copyBeanNotNull2Bean(workProjectNotify, workProjectNotifyRecover);//将编辑表单中的非NULL值覆盖数据库记录中的值
|
|
|
- workProjectNotifyRecover.setExceptionDetails(e.toString());
|
|
|
+ String exceptionDetails = "报错类="+stackTraceElement.getFileName() + "; 报错行="+stackTraceElement.getLineNumber() + "; 报错方法="+stackTraceElement.getMethodName() + "; 报错内容" + e.toString();
|
|
|
+ workProjectNotifyRecover.setExceptionDetails(exceptionDetails);
|
|
|
workProjectNotifyRecover.setNotifyId(workProjectNotify.getId());
|
|
|
workProjectNotifyRecover.setCompanyId(UserUtils.getUser().getCompany().getId());
|
|
|
workProjectNotifyRecoverService.save(workProjectNotifyRecover);
|