提交 e73a42fa 编写于 作者: tangyaolong's avatar tangyaolong

修改异常提示消息

上级 5c8c068a
...@@ -272,11 +272,11 @@ public class WFCoreService ...@@ -272,11 +272,11 @@ public class WFCoreService
*/ */
public Page<WFTask> getTaskByPage(WFTaskSearchContext context) { public Page<WFTask> getTaskByPage(WFTaskSearchContext context) {
if (ObjectUtils.isEmpty(context)) { if (ObjectUtils.isEmpty(context)) {
throw new BadRequestAlertException("无效消息上下文", "WFCoreService", "getBacklogByPage"); throw new BadRequestAlertException("无效消息上下文", "WFCoreService", "getTaskByPage");
} }
String toUserId = context.getSessioncontext().get("srfuserid") == null ? "" : context.getSessioncontext().get("srfuserid").toString(); String toUserId = context.getSessioncontext().get("srfuserid") == null ? "" : context.getSessioncontext().get("srfuserid").toString();
if(StringUtils.isEmpty(toUserId)){ if(StringUtils.isEmpty(toUserId)){
throw new BadRequestAlertException("无法获取当前用户", "WFCoreService", "getBacklogByPage"); throw new BadRequestAlertException("无法获取当前用户", "WFCoreService", "getTaskByPage");
} }
if (!taskMap.containsKey(toUserId)) { if (!taskMap.containsKey(toUserId)) {
return Page.empty(); return Page.empty();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册