Skip to content

已办流程节点视图

方便业务自己关联已办流程信息

视图名

SQL

sql
SELECT
 engine.F_ID AS engine_id,--引擎id
 engine.F_ENCODE AS engine_code,-- 引擎code
 engine.F_FULLNAME AS engine_name,-- 引擎名称
 engine.F_CATEGORY AS engine_category,-- 引擎分类
 engine.F_VERSION AS engine_version,-- 引擎版本
 task.F_ID AS task_id,-- 实例id
 task.F_FULLNAME AS task_name,-- 实例名称
 task.F_STATUS AS task_status,-- 实例状态
 node.F_ID AS node_id,-- 节点id
 node.F_NODECODE AS node_code,-- 节点编码
 node.F_NODENAME AS node_name,-- 节点名称
 op.F_ID AS op_id,-- 操作id
 op.F_CREATORTIME AS creator_time,-- 操作 接收时间
 op.F_HANDLETIME AS handle_time,-- 处理时间
 op.F_HANDLEID AS operator_id,-- 原处理用户
 opRecord.F_HANDLESTATUS AS handle_status,-- 处理状态 0 拒绝。1同意
 opRecord.F_HANDLEID AS handle_user_id -- 实际处理用户
FROM
 FLOW_ENGINE engine
 LEFT JOIN FLOW_TASK task ON task.F_FLOWID = engine.F_ID
 LEFT JOIN FLOW_TASKNODE node ON node.F_TASKID = task.F_ID
 LEFT JOIN FLOW_TASKOPERATOR op ON op.F_TASKNODEID = node.F_ID
 LEFT JOIN FLOW_TASKOPERATORRECORD opRecord ON opRecord.F_TASKOPERATORID = op.F_Id
WHERE
 ( opRecord.F_HandleStatus = 0 OR opRecord.F_HandleStatus = 1 )
 AND opRecord.F_TaskOperatorId IS NOT NULL
 AND opRecord.F_ID IS NOT NULL --  and opRecord.F_HandleId = '用户id,用于过滤数据'

字段说明

字段类型原表备注
engine_idstringFLOW_ENGINE引擎 id
engine_codestringFLOW_ENGINE引擎 code
engine_namestringFLOW_ENGINE引擎名称
engine_categorystringFLOW_ENGINE引擎分类
engine_versionstringFLOW_ENGINE引擎版本
task_idstringFLOW_TASK实例 id
task_namestringFLOW_TASK实例名称
task_statusstringFLOW_TASK实例状态
node_idstringFLOW_TASKNODE节点 id
node_codestringFLOW_TASKNODE节点编码
node_namestringFLOW_TASKNODE节点名称
op_idstringFLOW_TASKOPERATOR操作 id
creator_timedateFLOW_TASKOPERATOR操作 接收时间
handle_timedateFLOW_TASKOPERATOR处理时间
operator_idstringFLOW_TASKOPERATOR原处理用户
handle_statusstringFLOW_TASKOPERATORRECORD处理状态 0 拒绝。1 同意
handle_user_idstringFLOW_TASKOPERATORRECORD实际处理用户