14.flowable 已办任务列表查询
Posted 小学生05101
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了14.flowable 已办任务列表查询相关的知识,希望对你有一定的参考价值。
1、演示
2、代码
这里也是通过sql来查询的
SELECT DISTINCT
t1.ID_ AS taskId,
t1.NAME_ AS taskName,
t2.FIRST_ AS approver,
t2.ID_ AS approverId,
t3.NAME_ AS formName,
t3.BUSINESS_KEY_ AS businessKey,
t3.PROC_INST_ID_ AS processInstanceId,
t3.TENANT_ID_ as systemSn,
t1.START_TIME_ AS startTime,
t1.END_TIME_ as endTime
FROM
act_hi_taskinst t1
LEFT JOIN act_id_user t2 ON t1.ASSIGNEE_ = t2.ID_
LEFT JOIN act_hi_procinst t3 ON t1.PROC_INST_ID_ = t3.PROC_INST_ID_
WHERE
t1.END_TIME_ is not null
AND t1.ASSIGNEE_ = #userCode
以上是关于14.flowable 已办任务列表查询的主要内容,如果未能解决你的问题,请参考以下文章