diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/workflow/DynamicSetPMApprovalFlowPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/workflow/DynamicSetPMApprovalFlowPlugin.java index a445601..9c60e2e 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/workflow/DynamicSetPMApprovalFlowPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/workflow/DynamicSetPMApprovalFlowPlugin.java @@ -24,7 +24,8 @@ public class DynamicSetPMApprovalFlowPlugin implements IWorkflowPlugin { // 获取单据体中的【经理】字段,,将用户设置为当前单据的当前节点的审批人 DynamicObject obj = BusinessDataServiceHelper.loadSingle(pkId, entityNumber); DynamicObject project = obj.getDynamicObject("project"); - DynamicObject zcgjManger = project.getDynamicObject("zcgj_pm"); + DynamicObject projectInfo = BusinessDataServiceHelper.loadSingle(project.getLong("id"), "ec_project"); + DynamicObject zcgjManger = projectInfo.getDynamicObject("zcgj_pm"); long userId = zcgjManger.getLong("id"); ApproversIdList.add(userId); // 返回审批人的id集合