提交 fff9172a 编写于 作者: O o2null

Merge branch 'fix/empower' into 'project/chinamobile-重庆移动'

修复转交无法授权

See merge request o2oa/o2oa!2920

(cherry picked from commit f3608f7f)

ce3b58f2 修复转交无法授权
上级 73fd7159
......@@ -91,6 +91,8 @@ public class Work extends SliceJpaObject implements ProjectionInterface {
text = StringTools.utf8SubString(text, length_255B);
this.setManualTaskIdentityText(text);
}
// 强制进行properties对象写入
//this.setProperties(this.getProperties());
}
@PostLoad
......
......@@ -11,6 +11,7 @@ import javax.script.ScriptContext;
import javax.script.SimpleScriptContext;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import com.google.gson.JsonElement;
......@@ -40,6 +41,7 @@ import com.x.processplatform.service.processing.ThisApplication;
import com.x.processplatform.service.processing.WorkContext;
import com.x.processplatform.service.processing.WorkDataHelper;
import com.x.processplatform.service.processing.processor.manual.TaskIdentities;
import com.x.processplatform.service.processing.processor.manual.TaskIdentity;
class ActionAppend extends BaseAction {
......@@ -132,6 +134,13 @@ class ActionAppend extends BaseAction {
identities = business.organization().identity().list(ListTools.trim(identities, true, true));
emc.beginTransaction(Work.class);
work.setManualTaskIdentityList(identities);
for (TaskIdentity taskIdentity : taskIdentities) {
if (BooleanUtils.isNotTrue(taskIdentity.getIgnoreEmpower())
&& StringUtils.isNotEmpty(taskIdentity.getFromIdentity())) {
work.getProperties().getManualEmpowerMap().put(taskIdentity.getIdentity(),
taskIdentity.getFromIdentity());
}
}
// 转派后设置过期为空
// emc.beginTransaction(Task.class);
// task.setExpired(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册