项目经理工作流
This commit is contained in:
parent
9be2440b6d
commit
aef7266a65
|
@ -20,9 +20,11 @@ public class DynamicSetPMApprovalFlowPlugin implements IWorkflowPlugin {
|
||||||
List<Long> ApproversIdList = new ArrayList<>();
|
List<Long> ApproversIdList = new ArrayList<>();
|
||||||
// 获取单据id
|
// 获取单据id
|
||||||
String pkId = execution.getBusinessKey();
|
String pkId = execution.getBusinessKey();
|
||||||
|
String entityNumber = execution.getEntityNumber();
|
||||||
// 获取单据体中的【经理】字段,,将用户设置为当前单据的当前节点的审批人
|
// 获取单据体中的【经理】字段,,将用户设置为当前单据的当前节点的审批人
|
||||||
DynamicObject obj = BusinessDataServiceHelper.loadSingle(pkId, "zcgj_test_work_bill");
|
DynamicObject obj = BusinessDataServiceHelper.loadSingle(pkId, entityNumber);
|
||||||
DynamicObject zcgjManger = obj.getDynamicObject("zcgj_manger");
|
DynamicObject project = obj.getDynamicObject("project");
|
||||||
|
DynamicObject zcgjManger = project.getDynamicObject("zcgj_pm");
|
||||||
long userId = zcgjManger.getLong("id");
|
long userId = zcgjManger.getLong("id");
|
||||||
ApproversIdList.add(userId);
|
ApproversIdList.add(userId);
|
||||||
// 返回审批人的id集合
|
// 返回审批人的id集合
|
||||||
|
|
Loading…
Reference in New Issue