Commit f6b5f9c2 authored by 18310373984@163.com's avatar 18310373984@163.com

报错信息返回到前台

parent 84d35513
......@@ -261,8 +261,11 @@ public class SrvOrganController {
|| null == srvOrganEmpVo.getPhotoList()) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
Result result= srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo);
return result;
try {
return srvOrganEmpService.saveOrUpdateSrvOrganEmp(srvOrganEmpVo);
} catch (RuntimeException e) {
return Result.failed(e.getMessage());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment