提交 f9921474 编写于 作者: Z zhourui

修复上一个处理人相同判断,增加待办路由更新.

上级 4f70c545
......@@ -44,7 +44,7 @@ public class ExternalDataSource extends ConfigObject {
public static final Integer DEFAULT_SLOWSQLMILLIS = 2000;
public static final String DEFAULT_LOGLEVEL = "WARN";
public static final String DEFAULT_LOGLEVEL = "ERROR";
public static final String DEFAULT_TRANSACTIONISOLATION = "read-committed";
......
......@@ -158,6 +158,19 @@ public class Task extends SliceJpaObject implements ProjectionInterface {
this.creatorUnit = work.getCreatorUnit();
this.workCreateType = work.getWorkCreateType();
this.expireTime = expireTime;
this.routeName = "";
this.opinion = "";
this.modified = false;
this.allowRapid = allowRapid;
this.copyProjectionFields(work);
updateRoute(routes);
}
public Task updateRoute(List<Route> routes) {
this.routeList = new ArrayList<>();
this.routeNameList = new ArrayList<>();
this.routeOpinionList = new ArrayList<>();
this.routeDecisionOpinionList = new ArrayList<>();
if (ListTools.isNotEmpty(routes)) {
routes.stream().sorted(Comparator.comparing(Route::getOrderNumber, Comparator.nullsLast(Integer::compareTo))
.thenComparing(Route::getUpdateTime, Date::compareTo)).forEach(o -> {
......@@ -167,11 +180,7 @@ public class Task extends SliceJpaObject implements ProjectionInterface {
this.routeDecisionOpinionList.add(StringUtils.trimToEmpty(o.getDecisionOpinion()));
});
}
this.routeName = "";
this.opinion = "";
this.modified = false;
this.allowRapid = allowRapid;
this.copyProjectionFields(work);
return this;
}
public TaskProperties getProperties() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册