更新审批时效排行榜SQL - 查询已关闭的用户
This commit is contained in:
parent
abbea8026b
commit
a12e01992f
@ -50,15 +50,17 @@
|
|||||||
<!-- 根据用户分组,统计查询平均审批耗时最长Top10 数据包括已完成数据和平均耗时 -->
|
<!-- 根据用户分组,统计查询平均审批耗时最长Top10 数据包括已完成数据和平均耗时 -->
|
||||||
<select id="getUserProcessTpo10"
|
<select id="getUserProcessTpo10"
|
||||||
resultType="cn.iocoder.yudao.module.bpm.controller.admin.task.vo.instance.BpmProcessFinishStatisticsRespVO">
|
resultType="cn.iocoder.yudao.module.bpm.controller.admin.task.vo.instance.BpmProcessFinishStatisticsRespVO">
|
||||||
SELECT assignee_user_id as userId,
|
SELECT a.assignee_user_id as userId,
|
||||||
COUNT(*) as finfishCount,
|
COUNT(*) as finfishCount,
|
||||||
(SUM(UNIX_TIMESTAMP(end_time) - UNIX_TIMESTAMP(create_time))/60) /count(*) as userTime
|
(SUM(UNIX_TIMESTAMP(a.end_time) - UNIX_TIMESTAMP(a.create_time))/60) /count(*) as userTime
|
||||||
FROM bpm_task_ext
|
FROM bpm_task_ext a
|
||||||
WHERE end_time IS NOT NULL
|
left join system_users b on a.assignee_user_id = b.id
|
||||||
AND reason != '自动审批'
|
WHERE a.end_time IS NOT NULL
|
||||||
AND deleted = FALSE
|
AND a.reason != '自动审批'
|
||||||
AND process_definition_id like 'oa_%'
|
AND a.deleted = FALSE
|
||||||
GROUP BY assignee_user_id order by userTime desc limit 0, 10
|
AND a.process_definition_id like 'oa_%'
|
||||||
|
AND b.status = 0
|
||||||
|
GROUP BY a.assignee_user_id order by userTime desc limit 0, 10
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUnfinishProcessCount"
|
<select id="selectUnfinishProcessCount"
|
||||||
|
Loading…
Reference in New Issue
Block a user