Browse Source

BUG修改

King 8 months ago
parent
commit
c67b63e430

+ 5 - 4
tip-front/src/main/java/com/minto/app/task/util/TaskKaizhouUtil.java

@@ -210,12 +210,13 @@ public final class TaskKaizhouUtil{
         try{
             IWorkflowManager workflowManager = AppContext.getBean(IWorkflowManager.class);
             Long clerkId = getClerkOfLindao();
-            Long lingdaoId = AppContext.getCurrentUser().getId();
+            Long lingdaoId = AppContext.currentUserId();
             if(clerkId != null) {
-                WorkflowEnum.WorkflowTypeEnum tcType = WorkflowEnum.WorkflowTypeEnum.task;
+                WorkflowEnum.WorkflowTypeEnum tcType = WorkflowEnum.WorkflowTypeEnum.col;
                 // TODO tcId是什么怎么获取
                 NodeBO nodeBO = convertReqNodes(affairBO, clerkId, creator);
-                workflowManager.addNode(AppContext.currentLoginCorporation(), null, tcType, Lists.newArrayList(nodeBO), lingdaoId);
+                Long tcId = affairBO.getAffairBean().getNodeId();
+                workflowManager.addNode(AppContext.currentLoginCorporation(), tcId, tcType, Lists.newArrayList(nodeBO), lingdaoId);
             }
         }catch (Exception e){
             LoggerFactory.getLogger(TaskKaizhouUtil.class).error("添加领导秘书节点失败",e);
@@ -260,7 +261,7 @@ public final class TaskKaizhouUtil{
         nodeBO.setNodeType("task-node");
         nodeBO.setNodeTitle(nodeTitle);
         nodeBO.setNodeActionName("协同");
-        nodeBO.setDescription("");
+        nodeBO.setDescription(nodeId);
         nodeBO.setAttrMap(null);
         nodeBO.setNodeId(nodeId);
 //        nodeBO.setBaseInfo(new String[]{nodeId, String.valueOf(creator),actorId,"10001","0","0", nodeTitle , String.valueOf(tcId),"无","无", "0","-1"});