activiti流程審批步驟sql
阿新 • • 發佈:2018-12-12
-- 流程審批步驟 SELECT PROC_INST_ID_ ,START_ACT_ID_ NAME_,START_TIME_,START_TIME_ END_TIME_,t2.realname,'completed' DELETE_REASON_ FROM act_hi_procinst t1 ,t_s_base_user t2 WHERE t1.START_USER_ID_ = t2.username and BUSINESS_KEY_ = '${id}' UNION ALL SELECT a.PROC_INST_ID_ ,a.NAME_,a.START_TIME_,a.END_TIME_,c.realname,a.DELETE_REASON_ FROM act_hi_taskinst a, act_hi_procinst b, t_s_base_user c WHERE a.execution_id_ = b.id_ and a.ASSIGNEE_ = c.username AND b.BUSINESS_KEY_ = '${id}' order by START_TIME_