提交 fc4dc832 编写于 作者: O o2null

Merge branch 'cherry-pick-5404db02' into 'wrdp'

Merge branch 'feature/#444' into 'project/cb-yjs'

See merge request o2oa/o2oa!2610
......@@ -192,6 +192,14 @@ class ActionProcessing extends BaseAction {
this.task.setMediaOpinion(this.wi.getMediaOpinion());
business.entityManagerContainer().commit();
}
// 校验路由选择不能为空
if (StringUtils.isBlank(this.task.getRouteName())) {
throw new ExceptionEmptyRouteName();
}
// 校验路由在可选择范围内
if (!this.task.getRouteNameList().contains(this.task.getRouteName())) {
throw new ExceptionErrorRouteName(this.task.getRouteName());
}
}
private void seeManualRoute(Business business) throws Exception {
......
package com.x.processplatform.assemble.surface.jaxrs.task;
import com.x.base.core.project.exception.PromptException;
class ExceptionEmptyRouteName extends PromptException {
private static final long serialVersionUID = 1040883405179987063L;
ExceptionEmptyRouteName() {
super("路由选择不能为空.");
}
}
package com.x.processplatform.assemble.surface.jaxrs.task;
import com.x.base.core.project.exception.PromptException;
class ExceptionErrorRouteName extends PromptException {
private static final long serialVersionUID = 1040883405179987063L;
ExceptionErrorRouteName(String routeName) {
super("路由选择错误:{}.", routeName);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册