Преглед на файлове

流程审批,添加当前审批人

yzc преди 1 година
родител
ревизия
69e01b5c9f

+ 5 - 0
hx-flow/src/main/java/com/fjhx/flow/entity/flow/vo/FlowExampleVo.java

@@ -20,6 +20,11 @@ public class FlowExampleVo extends FlowExample {
     private String createUserName;
 
     /**
+     * 当前处理人名称
+     */
+    private String handleUserName;
+
+    /**
      * 流程key
      */
     private String flowKey;

+ 3 - 0
hx-flow/src/main/java/com/fjhx/flow/service/flow/impl/FlowExampleServiceImpl.java

@@ -400,6 +400,9 @@ public class FlowExampleServiceImpl extends ServiceImpl<FlowExampleMapper, FlowE
         // 赋值流程发起人名称
         UserUtil.assignmentNickName(records, BasePo::getCreateUser, FlowExampleVo::setCreateUserName);
 
+        // 赋值流程当前审批人名称
+        UserUtil.assignmentNickName(records, FlowExample::getHandleUserId, FlowExampleVo::setHandleUserName);
+
         return page;
     }
 

+ 2 - 1
hx-flow/src/main/resources/mapper/flow/FlowExampleMapper.xml

@@ -11,7 +11,8 @@
                fe.create_user,
                fe.create_time,
                fe.business_id,
-               fe.version
+               fe.version,
+               fe.handle_user_id
         from flow_info fi
                  inner join flow_definition fd on fd.flow_info_id = fi.id
                  inner join flow_example fe on fe.definition_id = fd.id